Title: Strings-Scanners-Formatting Summary
Course: CPS 161: An Intro to Programming with Java - DL MM MASTER

Strings-Scanners-Formatting Summary

Strings Scanners Classes Objects

- Classes, objects and the "new" operator
- Creating String objects and the Scanner object
- String methods: length and charAt
- String concatenation

Scanning & Formatting

- The printf method: Formatting String followed by a variable number of parameters
- Looking for the "%" field character followed by a conversion characters: d, f, e, g, s, c, n
- Other field designators: field width, precision, justification (right, left)

String Methods

- String methods: toLowerCase, toUpperCase, trim, substring, indexOf, etc.
- String escape characters: \n, \t, \", \\, etc.
- Memory view of String method operators: eventually we will discover that Strings are immutable

Last Modified: May 31, 2014 0:04 AM