On Thu, May 24, 2012 at 11:24 PM, Registered user
imregistere...@gmail.comwrote:
how do i stop processing input
how should i accept this input, no. of test cases not given
i used below code but its giving error... plz help
while(1==1)
{
i=scan.nextInt();
j=scan.nextInt();
//some
If you're looking to read integers until EOF with Java, try:
while (scan.hasNextInt()) {
i = scan.nextInt();
j = scan.nextInt();
...
}
You can find out about all the capabilities of scanner at
http://docs.oracle.com/javase/1.5.0/docs/api/java/util/Scanner.html.
On Thu, May 24, 2012 at
how do i stop processing input
how should i accept this input, no. of test cases not given
i used below code but its giving error... plz help
while(1==1)
{
i=scan.nextInt();
j=scan.nextInt();
//some processing n output
}
1 10
100 200
201 210
900 1000
--
You received this message