結果 : write a program to rotate an array by k positions in java