illustrates this casepublic void getuserinput(string inputdo input getinputstring()handleinput(input)while (input length()> )notice the exit condition for the above example specificallyit is written to be consistent with the rule in java that do-while loops exit when the condition is not true (unlike the repeat-until construct used in other languagesexplicit control-flow statements java also provides statements that allow for explicit change in the flow of control of program returning from method if java method is declared with return type of voidthen flow of control returns when it reaches the last line of code in the method or when it encounters return statement with no argument if method is declared with return typehoweverthe method is function and it must exit by returning the function' value as an argument to return statement the following (correctexample illustrates returning from function/check for specific birthday public boolean checkbday (int dateif (date =birthdays mikes_bdayreturn truereturn false