The toUpperCase() function
So I promised you that strings had the functionality not seen in a simple primitive type. To employ this, let's navigate to the String class in our Java documentation at docs.oracle.com/javase/7/docs/api/. Select java.lang shown under Packages, then scroll down and select String from ClassSummary. As with the documentation for all Java classes, the String documentation contains Method Summary, which will tell us about all the functions we can call on an existing String object. If we scroll down in Method Summary, we'll come to the toUpperCase() function that converts all the characters in a string into uppercase letters:
Let's employ this function now. Back in NetBeans, we now need to determine the best place in ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access