Java Reverse Polish Notation Machine