Strings - ISC Class 11 Computer Science Notes, Diagrams and Solved Questions
The Java String class: immutability and equals, accessing characters with charAt, substrings, concatenation rules for +, searching with indexOf and replacing, comparing with compareTo, and string algorithms such as palindromes, word processing and the Caesar cipher.
In this chapter
String objects, immutability, length() and why equals is used instead of ==
Accessing characters with charAt and working with character codes
substring(begin, end) and substring(begin), startsWith and endsWith
Concatenation with + and concat, and the left-to-right rule with numbers and chars
indexOf, lastIndexOf, finding every occurrence, and replace
compareTo, equalsIgnoreCase, toUpperCase, toLowerCase and trim
Palindromes, word-by-word processing, frequency counts and the Caesar cipher