Lesson 3. Strings and Packages

In this lesson, you will:

• learn more about the String class

• learn how characters are represented in Java

• use a system property to ensure platform-independent code

• use StringBuilder objects to dynamically construct strings

• learn how to iterate through a collection to operate on each of its objects

• use System.out to display report output

• organize your classes into packages

• increase your understanding of the access modifiers public and private

Characters and Strings

Strings, or pieces of text, account for up to 50 percent and more of the objects created during the execution of a typical Java application. While Strings are objects, they are made up of sequences of individual characters. Java represents ...

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.