// DrJava saved history v2 int x = 10; x = x + 1; x x++; x // ++ is called the auto-increment operator x--; x // -- is the auto-decrement operator 7++ x ++x x x++ x int y = 0; y++ y ++y y (++y) (y++) y y = y + 4; y += 4; y *= 3; y /= 3; y y /= 3; y y -= 3; y import javax.swing.JFrame; JFrame window = new JFrame(); window.show() window.setSize(300, 400) // types of methods: procedures, functions, constructors window.getX() window.getY() "X: " import javax.swing.JFrame; JFrame window = new JFrame(); window.getX() "X: window.getX()" "X: " window.getX() "X: " + window.getX() OurJFrame j1 = new OurJFrame(); j1.show() j1.setTitleXY(); j1.setTitleXY(); j1 = new OurJFrame(); j1.show() int a = 8; a = 1; j1 = 3; JFrame newJFrame = new JFrame(); import javax.swing.JFrame; JFrame newJFrame = new JFrame(); newJFrame.setTitleXY() newJFrame = new OurJFrame(); newJFrame.setTitleXY() // The first line of a method is called the "method header". // Use "void" to indicate that it is a procedure. BankAccount myAccount = new BankAccount(); myAccount.withdraw(7.30) myAccount.balance BankAccount myAccount = new BankAccount(); myAccount.getBalance() myAccount.withdraw(7.30) myAccount.getBalance() BankAccount myAccount = new BankAccount(); myAccount.balance myAccount.balance = 7.9; myAccount.balance