Chapter 7: Java Variables, Operators, and Expressions
In this chapter and the next, we are going to learn and practice the core fundamentals of Java data and how to manipulate that data. In this chapter, we will focus on creating and understanding the data itself, and in the next chapter, we will see how to manipulate and respond to it.
We will also quickly recap on what we learned in the earlier chapters about Java, and then dive into learning how to write our very own Java code. The principles we are about to learn are not limited to Java but are applicable to other programming languages as well.
By the end of the chapter, you will be comfortable writing Java code that creates and uses data within Android. This chapter takes you through the following topics:
- Understanding Java syntax and jargon
- Storing and using data with variables
- Using variables
- Changing values in variables with operators
- Trying out expressions
Let's learn some Java.
...