challlennngee
|
aiiyaa comp sci is hard for me T_T What is the output? the data file (nums.dat)has: 34 23 11 22 27 BufferedReader file =new BufferedReader(new FileReader("nums.dat")); String line; while((line=file.readLine()) !=null) { line = file.readLine(); int number = Integer.parseInt(line); System.out.print(number + " "); } file.close(); |
Re: challlennngee
|
Is it really ok if we just tell you the answer? Just go line by line and see what each one does. Pretend you're the computer and do each step exactly as written, which may or may not be how to get the desired result. What I think will happen.
>,>; Did I just say that...?
|