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]](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f39e47d9e10_79966f39e476cbd9.jpg)
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
Get step-by-step solutions from verified subject matter experts
