public class BooleanIO { public static boolean parseBoolean( String s ) { /* ------------------------------------------------------- Signal to students that we are using our own method ! ------------------------------------------------------- */ System.out.println("*** You called BooleanIO's parseBoolean( )"); if ( s.equals("true") ) return true; else return false; } public static String toString( boolean x ) { /* ------------------------------------------------------- Signal to students that we are using our own method ! ------------------------------------------------------- */ System.out.println("*** You called BooleanIO's toString( )"); if ( x == true ) return "true"; else return "false"; } }