Chapter 2

Java Conditional and Looping Statements

OBJECTIVES
  • To introduce different conditional statements such as if, if-else, if-else-if and nested if statements
  • To implement the revised CircleArea and Biggest2 application with if statement
  • To apply if-else statement to Divisible application
  • To implement CalcGrade application with if-else-if statement
  • To explain the importance of conditions and how control flows to different parts of a program
  • To explain the relation between if statement and logical operators
  • To check the given year is leap or not
  • To implement switch statement for ArithCalculator application
  • To introduce switch statement with string case
  • To explain looping structures such as while, do-while and for statements
  • To implement ...

Get JAVA Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.