This is a problem I have been struggling with, think I'm almost there with it just need a nudge in the right direction. I'm not looking for the answer, just some 'hints'

The Problem
////////////////////////////// PROBLEM STATEMENT //////////////////////////////
// Given an array of ints of any length, print an array with the elements //
// "rotated left" by the specified amount. Use methods for array input, //
// rotating the array and printing the array. //
// {1, 2, 3} 1 -> {2, 3, 1} //
// {5, 11, 9} 2 -> {9, 5, 11} //
// {7, 0, 0} 3 -> {7, 0, 0} //
///////////////////////////////////////////////////////////////////////////////

I have all my methods set up, just not sure how to write the code for the rotateArray(); method.

So far I've tried swapping each element in the array within a decreasing for loop, but I having trouble with the front element that has to be carried to the end of the array.

(In the problem statement - {1, 2, 3} is the actual given array and the number following is how many times it must be 'rotated left'. Then the second set of curly braces is the expected result.