Question
Need Help Please Use this to start
public void shiftNTimes (int[] array, int numshifts)
{
"Method Here"
Modify array so it is "left shifted" 11 times -- so shiftNtimes({6, 2, 5, 3), 1) changes the array argument to {2, 5, 3, 6} and shiftNtimes({6, 2, 5, 3}, 2) changes the array argument to {5, 3, 6, 2}. You must modify the array argument by changing the parameter array inside method shiftNtimes. Remember, a change to the parameter inside the method shiftNtimes changes the argument inside the @Test method.
Explanation / Answer
int Array={..input..} public void shiftNTimes (int[] array, int numshifts) { for(j=numshifts;j>0;j++) { int temp = array[0]; //Grab the first number from the array } }