Java in the Small: Strings
Class in language library java.lang
String s;
s.length()
// length method
s.concat(String t)
// concat method
s + t
// concat abbrev.
s.indexof(char c)
// index of c in s
Almost all of the usual string operations as methods
Previous slide
Next slide
Back to the index
View Graphic Version
Notes:
No notes for slide 10