Hour 6. Using Strings to Communicate

What You’ll Learn in This Hour:

• Using strings to store text

• Displaying strings in a program

• Including special characters in a string

• Pasting two strings together

• Including variables in a string

• Comparing two strings

• Determining the length of a string

In the film The Piano, Holly Hunter portrays Ada, a young Scottish woman who is mute and can express herself only by playing her piano.

Like Ada, your computer programs are capable of quietly doing their work and never stopping for a chat—or piano recital—with humans. But if The Piano teaches us anything, it’s that communication ranks up there with food, water, and shelter as essential needs. (It also teaches us that the actor Harvey Keitel has a lot of body confidence, but that’s a matter for another book.)

Java programs use strings as the primary means to communicate with users. Strings are collections of text—letters, numbers, punctuation, and other characters. During this hour, you learn all about working with strings in your Java programs.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.144.9.124