COP 2210
Summer "B" Semester 2007
Read this first!
NOTE: Students must bring printed copies of all class handouts and sample
programs to class. Class handouts are in MS Word '97 format.
Additional files will be posted throughout the semester.
Sample programs are plain text .java files and can be downloaded and run.
(Programs have all been tested and contain no syntax or logic errors.)
Got Java?
Follow the link above, scroll down to the heading "J2SE 5.0 Documentation "and click the Download button
NetBeans 5.5.1 - 53.7 MB (freeware from Sun Microsystems)
Eclipse 3.2.2 - 121 MB (freeware)
Note: You must install the Java 2 software (above) before installing any of the IDE's
Before Beginning (Class policies, etc)
Textbook Resources
- Big Java, Second Edition
Unit 1 - Introduction
Unit 2 - Using an Existing Class
Unit 3 - Implementing ("Creating") Classes
Unit 4 - Fundamental Data Types, Reading User Input, and More
Unit 5 - Style and Documentation Standards for Java Programs
Unit 6 - Decision-Making (aka: "Selection" or "Conditional Execution")
Unit 7 - Iteration (aka: "Repetition" or "Looping")
Unit 8 - Designing Classes
Unit 9 - ArrayLists
[BankAccount.java] [Bank.java] [BankTester.java]
BankAccount objects have an account number and a balance that can be modified by deposits and withdrawals
The Bank class has an instance variable that is an ArrayList-of-BankAccount, which maintains a list of accounts (i.e., BankAccount objects), and methods that return the total on deposit in all accounts, the account number of the account with the largest balance, and the number of accounts that contain a minimum balance or more. There is also a search method, where the user enters an account number and the balance of the corresponding account is returned
The test class creates a Bank object and several BankAccount objects which are added to the list, and then calls the methods of the Bank class
Unit 10 - Data Files