logo_michael-thomas.jpg (3143 bytes)

Chapter 5
Strings and Things  

Click here to go back to the courses home page.

Java Programs

Listing 5.1 - Declare & initialize a String.

Listing 5.2 - Declare a String and then later give it a value.

Listing 5.3 - Variable scope (class vs local).

Listing 5.4 - String methods (length(), toLowerCase(), toUpperCase())

Listing 5.5 - Numeric variables (primitives) & there ranges.

Listing 5.6 - Converting between strings & numbers.

Listing 5.7 - Converting between types of numbers.

Listing 5.8 - Casting

Listing 5.9 - Array of Strings.