Lesson 2. Java Basics

In this lesson you will:

• use the numeric type int to count the number of students

• use the Java collection class java.util.ArrayList to store many students

• understand default constructors

• learn how to use the J2SE API documentation to understand how to use java.util.ArrayList

• restrict the java.util.ArrayList collection to contain only Student objects

• create a TestSuite to test more than one class

• learn about packages and the import statement

• understand how to define and use class constants

• use date and calendar classes from the system library

• learn the various types of comments that Java allows

• generate API documentation for your code with javadoc


Schools have courses, such as Math 101 ...

Get Agile Java™: Crafting Code with Test-Driven Development now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.