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 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 ...

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