foundflag truebreak zerosearchreturn foundflagthe example above also uses arrayswhich are covered in section the continue statement the other statement to explicitly change the flow of control in java program is the continue statementwhich has the following syntaxcontinue labelwhere label is an optional java identifier that is used to label loop as mentioned abovethere are no explicit "go tostatements in java likewisethe continue statement can only be used inside loops (forwhileand dowhilethe continue statement causes the execution to skip over the remaining steps of the loop body in the current iteration (but then continue the loop if its condition is satisfied arrays common programming task is to keep track of numbered group of related objects for examplewe may want video game to keep track of the top ten scores for that game rather than use ten different variables for this taskwe would prefer to use single name for the group and use index numbers to refer to the high scores in that group similarlywe may want medical information system to keep track of the patients currently assigned to beds in certain hospital againwe would rather not have to introduce variables in our program just because the hospital has beds in such caseswe can save programming effort by using an arraywhich is numbered collection of variables all of the same type each variableor cellin an array has an indexwhich uniquely refers to the value stored in that cell the cells of