Lab Exercise 1

  • If you haven't done so yet create a NetBeans project on your U: drive. Make sure you uncheck the main project and main class options.

  • Copy the 2nd and 4th examples from the course examples page into the src folder of your project.

  • Run each example.

  • Copy the BankAccount class into the src folder of your NetBeans project. See BankAccount javadoc for a description of the BankAccount class. Do not change the BankAccount class.

  • Write a main class to the following:

  • Declare a BankAccount variable and assign to it a new BankAccount object with account number 1234567 and balance 100.00.

  • Write a statement to withdraw 50.00 dollars from the account.

  • Use System.out.println(...) to display the balance in the account.