Die Klasse InOut als Java-Quelltext.


package myio;



public class InOut

{

        public static void write(String s){

                        System.out.print( s );

        }

        public static void writeln(String s){

                        System.out.println( s );

        }

        public static String readString(){

                String s = "";

                try {

                        java.io.BufferedReader d = new java.io.BufferedReader(

                        new java.io.InputStreamReader(System.in));

                        s = d.readLine();

                }

                catch (java.io.IOException e) {}

                return s;

        }

        public static int readInt(){

                String s = readString();

                return java.lang.Integer.parseInt (s);

        }

        public static double readDouble(){

                String s = readString();

                return java.lang.Double.parseDouble (s);

        }

        public static float readFloat(){

                String s = readString();

                return java.lang.Float.parseFloat (s);

        }

}