Function to convert String to int
static int StringtoInt ( String s ) { return Integer . valueOf ( s ) ; } static int min ( int a , int b , int c ) { return Math . min ( a , Math . min ( b , c ) ) ; } static int max ( int a , int b , int c ) { return Math . max ( a , Math . max ( b , c ) ) ; }