Create rotateList.java