February 2014
Beginner
1248 pages
62h 25m
English
Often it’s useful to search a string for a character or set of characters. For example, if you’re creating your own word processor, you might want to provide a capability for searching through documents. Figure 14.5 demonstrates the many versions of String methods indexOf and lastIndexOf that search for a specified character or substring in a String.
Read now
Unlock full access