Fill in the blanks in the following Java program that create…
Fill in the blanks in the following Java program that creates a file named “numbers.txt” and writes all odd numbers from 1 to 10 using PrintWriter. import java.io.*;public class WriteOddNumbers { public static void main(String[] args) throws IOException { PrintWriter outputFile = new PrintWriter(“[blank1]”); for (int i = [blank2]; i
Read Details