OCP EXAM OBJECTIVES COVERED IN THIS CHAPTER:
- Using Operators and Decision Constructs
- Use Java control statements including if, if/else, switch
- Create and use do/while, while, for and for each loops, including nested loops, use break and continue statements
Like many programming languages, Java is composed primarily of variables, operators, and statements put together in some logical order. Previously, we covered how to create and manipulate variables. Writing software is about more than managing variables, though; it is about creating applications that can make intelligent decisions. In this chapter, we present the various decision-making statements available to you within the language. This knowledge will allow ...