12
Java Core API
In this chapter, we will delve more deeply into popular classes and interfaces from the Java API. We will start with the Scanner class, which is commonly used for scanning and parsing text from sources such as the keyboard (the user). We will then examine the very popular String and StringBuilder classes. We will discuss their differences, which will require contrasting mutable and immutable types. We will also show you how to design immutable types and look at the List interface and its popular implementation class, ArrayList. Lastly, we will examine the Date API, which was overhauled in Java 8.
For further details on the types covered in this chapter, please refer to the Java Docs API: https://docs.oracle.com/en/java/javase/21/docs/api/index.html ...
Get Learn Java with Projects 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.