February 2017
Beginner
1056 pages
28h 57m
English
StringWords, words, mere words, no matter from the heart.
—WILLIAM SHAKESPEARE, Troilus and Cressida
Strings of characters, such as "Enter the amount:", are treated slightly differently than values of the primitive types. Java has no primitive type for strings. However, Java supplies a class called String that can be used to create and process strings of characters. In this section, we introduce you to the class String.
Classes are central to Java, and you will soon define and use your own classes. However, this discussion of the class String gives us an opportunity to review some of the notation and terminology used for classes that Chapter 1 introduced.
You have ...
Read now
Unlock full access