O'Reilly logo

Agile Java™: Crafting Code with Test-Driven Development by Jeff Langr

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

CourseSession

Schools have courses, such as Math 101 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required