public static boolean getBoolean ( final String title , final boolean defaultValue ) { final String val = ConsoleMenu . selectOne ( title , new String [ ] { "Yes" , "No" } , new String [ ] { Boolean . TRUE . toString ( ) , Boolean . FALSE . toString ( ) } , defaultValue ? 1 : 2 ) ; return Boolean . valueOf ( val ) ; }
Gets a boolean from the System . in