Re: [gcj] in java : number of test cases not given , dont mind i m just a begineer, i m here to learn from u all....

2012-06-12 Thread Dhruva Bhaswar
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

Re: [gcj] in java : number of test cases not given , dont mind i m just a begineer, i m here to learn from u all....

2012-06-11 Thread Bartholomew Furrow
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

[gcj] in java : number of test cases not given , dont mind i m just a begineer, i m here to learn from u all....

2012-05-24 Thread Registered user
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