Question: I want this Java program as soon as possible and this is the Stock.txt. file import java.io.FileNotFoundException; import java.io.PrintWriter; import java.io.UnsupportedEncodingException; import java.util.Random; import java.util.Scanner;
I want this Java program as soon as possible

and this is the Stock.txt. file
import java.io.FileNotFoundException; import java.io.PrintWriter; import java.io.UnsupportedEncodingException; import java.util.Random; import java.util.Scanner;
public class WriteStringsToFile { public static void main(String args[]) throws FileNotFoundException, UnsupportedEncodingException { String data[] = {"IBM, International Business Machines Corporation, 144.84, 5/2/2016", "AAPL, Apple Inc. 92.63, 5/2/2016", "ORCL, Oracle Corporation, 45.96,4/26/2018", "CSCO, Cisco Systems, 44.21, 4/26/2018"}; PrintWriter writer = new PrintWriter("stocks.txt", "UTF-8"); int res; for(int i = 0;i please let me know if anything else is missing
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
