Rotate the element of the array with a given input n ('n' number of rotation ).


Rotate the element of the array with a given input, the following program able to rotate the array to the left side as a given number of 'n', n means how many elements will be rotated to the left side.

Java Program Code :




Output: