- Android Programming for Beginners
- John Horton
- 142字
- 2021-07-23 14:47:06
Chapter 7. Coding in Java Part 1 – Variables, Decisions, and Loops
In this chapter, we are going to learn and practice the core fundamentals of Java, that is, the code that goes into the classes, and the methods that we create, along with the data that the code acts upon.
We will also quickly recap on what we learned in the previous chapters about Java and then immediately 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 also applicable to other programming languages as well. By the end of the chapter, you will be comfortable writing Java code that actually creates and uses data within Android.
This chapter takes you through:
- Java syntax and jargon
- Variables, operators, and expressions
- Decisions and branching
- Loops