id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

andersoniii.edwin@cusd80.com > merryGoRoundRight
prev  |  next  |  chance

Write a method merryGoRoundRight(int[]nums). This method will receive an array containing at least three integers and switch the order of the integers in the array and return the array. The first will be second, the second will become the third and so forth with the last becoming first.


merryGoRoundRight([1, 2, 3]) → [3, 1, 2]
merryGoRoundRight([1, 2, 3, 4]) → [4, 1, 2, 3]
merryGoRoundRight([1, 2, 3, 4, 5]) → [5, 1, 2, 3, 4]

...Save, Compile, Run (ctrl-enter)

public int[] merryGoRoundRight(int[] nums){ }

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Java Help

Misc Code Practice

Difficulty: 100

Copyright Nick Parlante 2017 - privacy