Strings are much more robust than they appear to be. They have several properties and capabilities that you can use methods to unlock to manipulate and manage contents of strings. These include finding the length of the string, extracting a specific character from a string, comparing strings, and pulling out a substring out of a larger string.
43. Strings as Collections
Get Essential Java for AP CompSci: From Programming to Computer Science now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.