Question: Question 2: following is the code for writing numbers from [1-100] into a text file, separated by a space and 10 in a line. It

 Question 2: following is the code for writing numbers from [1-100]

Question 2: following is the code for writing numbers from [1-100] into a text file, separated by a space and 10 in a line. It has some errors, find the error and write the correct code next to it. One example of error finding is given. [6] import java.io.File; import java.io. PrintWriter; 1) 2) 3) 4) 5) 6) 7) 8) 9) 10) 11) 12) 13) 14) 15) 16) 17) 18) public class Numbers { public static void Main(String[] args) Exception { File ff=new File (numbers.txt); Printwriter out=new Printwriter (ff); int number PerLine=1; ty { for (int i=1; i

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!