Small calculator in JAVA