import java.awt.*; import java.awt.event.*; class Calc { char optChar = '+'; boolean isEqu = false; boolean fstInput = true; boolean isOpt = false; boolean isDot = false; boolean isAddRight = false; double optA = 0.0; double optB = 0.0; double tmpOptB = 0.0; Frame f; TextField tf; Pane