O'Reilly logo

Minecraft Mods Programming Absolute Beginner’s Guide by Rogers Cadenhead

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

14. Store Objects in Data Structures

In This Chapter

Create an array list

Add and remove items from the list

Search a list for an object

Loop through the contents of a list

Create a hash map of keys and values

Add and remove items from the map

Loop through the keys and values of a map

Programmers are hoarders.

In computer programming, you spend a lot of time collecting information and looking for a place to store it. The information can come in the form of a primitive data type, such as a float, or as an object of a particular class. It can be read from disk, retrieved from an Internet server, entered by a user, or gathered through other means.

After you have the information, you must decide where to put it while a program is ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required