Update RotateList.java

Submission Result: Compile Error

Line 18: missing return value

Submission Result: Wrong Answer

Input:	{1,2}, 3
Output:	{1,2}
Expected:	{2,1}

Submission Result: Compile Error

Line 33: missing return value