Java Reference
In-Depth Information
The
indexOf( )
method finds the first occurrence of the specified substring.
lastIn-
dexOf( )
finds the last occurrence.
charAt( )
methods on this string literal: "I like Java".