How recognize EOF in Java using standar input
Posted: Sat Oct 18, 2008 5:29 pm
Hi, im doing some problems but i dont really now how recognize the EOF in Java.
If i use this to read from standar input:
Can anyone help me .. Thanks.
If i use this to read from standar input:
Code: Select all
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String line = "";
while ((line = br.readLine())!= null ){
/*
*/
}
}