Home > Articles

Working with Objects

  • Print
  • + Share This
This chapter is from the book


To extend your knowledge of the subjects covered today, try the following exercises:

  • Create a program that turns a birthday in MM/DD/YYYY format (such as 8/23/2002) into three individual strings.

  • Create a class with instance variables for height, weight, and depth, making each an integer. Create a Java application that uses your new class, sets each of these values in an object, and displays the values.

Where applicable, exercise solutions are offered on this book's Web site at http://www.java21days.com.

  • + Share This
  • 🔖 Save To Your Account