Java for Humans | Variables

Lincoln W Daniel
ModernNerd Code
Published in
4 min readDec 18, 2015

--

View Table of Contents | Download Supporting Code | Subscribe to ModernNerd Youtube Channel for Coding Videos | By Lincoln W Daniel

There are some concepts in Java, or any programming language for that matter, that you cannot go without understanding and using. Variables are one of those concepts, but don’t worry because it’s also one of the simplest concepts in Java. By the end of this chapter, you’ll understand all you need to know about variables to start storing all of life’s information for later use.

Why Variables Are Important & Useful

Before we start on Java and its variables, we first need to assert why we program:

We program to capture and manipulate information, data, to create new data for users to consume.

That data can be how much money is in your bank account or the pass code to access it. It could be how many classes you have this week and each course could have more data that says what its title is, who the teacher is, and what its about. That data could even be a picture on Instagram, how many times its been double-tapped, and who owns the picture. Or, a more fun example is data about the release angle of your Angry Bird and where it’ll land on the tower to knock it down. All of that data has to be stored somewhere in order to be manipulated and displayed to you, the user. That’s exactly what variables are used for. We can store a single data…

--

--

Lincoln W Daniel
ModernNerd Code

Chief Bull @ BullAcademy.org ® Elevating writers @ ManyStories.com. Author @JavaForHumans Ex: Editor in Chief MarkGrowth (acq.), Engineer @Medium @GoPuff