Package com. jzm. input;
Import java. Io. bufferedreader;
Import java. Io. ioexception;
Import java. Io. inputstreamreader;
Public class testbufferread {
Public static void main (string [] ARGs) throws ioexception {
Bufferedreader = new bufferedreader
(New inputstreamreader (system. In ));
System. Out. println ("Please input a string data :");
String string = bufferedreader. Readline ();
System. Out. println ("Please input a int data :");
Int I = bufferedreader. Read ();
System. Out. println ("string =" + String + "I =" + I );
}
}
Package com. jzm. input;
Import java. util. collections;
Public class testbench {
/**
* @ Param ARGs
*/
Public static void main (string [] ARGs ){
System. Out. println ("enter your name ");
Required bytes = new bytes (system. In );
String string = values. Next ();
System. Out. println (string );
}
}
Buckets cannot contain spaces, while bufferedread can contain spaces.
Input is not that difficult! @