JMU
Using Strings
An Introduction with Examples in Java


Prof. David Bernstein
James Madison University

Computer Science Department
bernstdh@jmu.edu


Getting Started
Immutability
Immutability (cont.) - "Changing" Case
Immutability (cont.) - "Changing" Case
Concatenation
Concatenation (cont.)
Concatenation (cont.)
Concatenation (cont.)
Concatenation (cont.)
The Format String
Do We Need the new Operator?
Do We Need the new Operator? (cont.)
Some String Methods
Some String Methods (cont.)
Java vs. Python - Important Differences