read() in JAVA:
void read(void){
try{
do{
void read(void){
try{
do{
x=(System.in.read();
System.out.println(ch=(char)x) ;
} while(ch == '\n' | ch == '\r');
}catch (Exception e){}
}
// take care, while reading input with read() method...
No comments:
Post a Comment