int function ( Scanner arg0 , String arg1 ) { System . out . print ( arg1 ) ; while ( ! arg0 . hasNextInt ( ) ) { arg0 . next ( ) ; System . out . println ( "srini_string" ) ; System . out . print ( arg1 ) ; } return arg0 . nextInt ( ) ; }
i learned of this method through the reges textbook . this method evaluates user input to ensure the user 's input is of a legal integer data type . concode_field_sep PlaceHolder placeHolder concode_field_sep boolean eligibleForHouse concode_elem_sep boolean eligibleForSenate concode_elem_sep void main