Lesson 8. Data Structures
Up to this point, you’ve learned about the core elements of the Java language: objects, classes, and interfaces, along with the keywords, statements, expressions, and operators they contain.
Now the focus shifts from the classes you create to the ones that have been created for you. The Java Class Library is a set of official packages from Oracle that has more than 4,400 classes you can use in your own Java programs. This lesson focuses on classes that represent data.
The following data structures are covered in this lesson:
Bit sets, which hold Boolean values
Array lists, which are arrays that can grow and shrink in size
Stacks, which are structures stored in last-in, first-out (LIFO) order
Hash maps, which store ...
Get Sams Teach Yourself Java in 21 Days (Covers Java 11/12), 8th Edition 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.