Question: Java pls 1- Check if a file data.csv exists in resources folder. 2- If it already exists, delete it and create a new file. (Use

Java pls
1- Check if a file "data.csv" exists in "resources" folder. 2- If it already exists, delete it and create a new file. (Use try catch block) 3- Confirm if file is deleted or not. Display a message accordingly. 3- Store following rows in the newly created file. Ben, 19,1984,80000 Cathy, 20,1985,75000 4- Save the file. 5- Read the data from the file and print it on the screen. 6- Run the code a couple of times with different data
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
