{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

lec04 - Lecture 4 Manipulating strings Screen output The...

Info iconThis preview shows pages 1–7. Sign up to view the full content.

View Full Document Right Arrow Icon
CS125 Course Notes Lecture 4, Slide 1 Lecture 4 • Manipulating strings • Screen output • The Scanner class • (Savitch 2.3)
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
CS125 Course Notes Lecture 4, Slide 2 String processing You can’t change the value of a String object but you can change the value of a String variable. Follow same process used for primitives. • Example: String name = "Joseph"; name = "Alfred"; The value of name is now "Alfred".
Background image of page 2