A java calculator