Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Help in JAVA (1) Your task is to TIX all the l OLOS in the following Code. TODO import statements public class WriteCSV public static
Help in JAVA
(1) Your task is to TIX all the l OLOS in the following Code. TODO import statements public class WriteCSV public static void main (String args) Grading program needs hardcoded filename Oh, well String input Filename coords .txt String output Filename changeFileExtToCsv (input Filename) Open files Scanner input TODO call method to open input file Print Writer output. TODO call method to open output file TODO: Read input line replace all spaces with commas and write output line while (input hasNextLine TODO: close streams Changes file extension to ".csv" eparam filename return public static String changeFileExtTocsv (String filename) return filename substring (0, filename lastIndexOf CSV Open input for reading param filename @return public static Scanner open Input (String filename Scanner in- null try File infile new File (filename) in new Scanner (infile); i catch FileNotFoundException e //e.printstackTrace System.out.println (filename could not be found System exit (0)Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started