© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2022
J. Juneau, L. ManelliJava 17 Recipeshttps://doi.org/10.1007/978-1-4842-7963-2_3

3. Strings

Josh Juneau1   and Luciano Manelli2
(1)
Hinckley, IL, USA
(2)
TARANTO, Taranto, Italy
 

This chapter focuses on some of the most common String methods and techniques for working with String objects. In fact, they are one of the most used data types in any programming language. They can be used to obtain text from a keyboard, print messages to a command line, and much more. Given that strings are used so often, there have been many features added to the String object over time to make them easier to work with. After all, a string is an object in Java, so it contains methods ...

Get Java 17 Recipes: A Problem-Solution Approach 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.