Update Queue.java

Change getRear to getLast