IO Java - Alessandro Barazzuol

IO Java

package myutil;

import java.io.*;

public class myio
{
private InputStreamReader input=new InputStreamReader(System.in);
private BufferedReader tastiera=new BufferedReader(input);
private String line="";

public String input()
{

try

{

line =tastiera.readLine();

}catch(IOException e)

{

System.out.println(e);

}

return line;


}

public void output(Object o)
{

System.out.println(o.toString());


}
}


import myutil.*;
import java.io.*;

public class es
{

public static void main(String[] arg) throws IOException
{



myio my=new myio();


String s=my.input();

my.output(s);






}


}