// DrJava saved history v2 BankAccount myAccount = new BankAccount(); my.getBalance() myAccount.getBalance() myAccount.deposit() myAccount.deposit(100) myAccount.getBalance() myAccount.withdraw(10) myAccount.getBalance() myAccount.balance BankAccount myAccount = new BankAccount(); myAccount.balance myAccount.balance = 783; myAccount.balance public and private are access modifiers. // public and private are access modifiers. // public: usable by anyone anywhere // private: usable only in a single file. int y; y boolean y; boolean x; x BankAccount myAccount = new BankAccount(); myAccount.getBalance() BankAccount myAccount = new BankAccount(300.39); myAccount.getBalance() BankAccount yourAccount = new BankAccount(); yourAccount.getBalance() import javax.swing.JFrame; JFrame x = new JFrame(); x.show() JFrame y = new JFrame("The title is going to be set to this!"); y.show() BankAccount b = new BankAccount(8.3, "Jen", "Campbell"); b.getBalance() BankAccount b = new BankAccount(8.3, "Jen", "Campbell"); b.getFirstName() import java.util.Date; Date d1 = new Date(); d1.getHours() d1.getMinutes() d1.getSeconds() d1.getDay() d1.getMonth() d1.getYear() d1.setYear(300) d1.getYear() Date d2 = new Date(100, 3, 5); d2.getHours() d2.getMinutes() d2.getSeconds() OurJFrame j; JOptionPane; JFrame j9;