Agile Javaв„ў: Crafting Code with Test-Driven Development

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

Категории