poor style /correctbut string "value /this is good string integer tostring( )/this is good control flow control flow in java is similar to that of other high-level languages we review the basic structure and syntax of control flow in java in this sectionincluding method returnsif statementsswitch statementsloopsand restricted forms of "jumps(the break and continue statementsthe if and switch statements in javaconditionals work similarly to the way they work in other languages they provide way to make decision and then execute one or more different statement blocks based on the outcome of that decision the if statement the syntax of simple if statement is as followsif (boolean_exptrue_statement else false_statement where boolean_exp is boolean expression and true_statement and false_statement are each either single statment or block of statements enclosed in braces ("{and "}"note thatunlike some similar languagesthe value tested by an if statement in java must be boolean expression in particularit is definitely not an integer expression neverthelessas in other similar languagesthe else part (and its associated statementin java if statement is optional there is also way to group number of boolean testsas followsif (first_boolean_exptrue_statement