A simple calculator coded in Java