Question: How to find the text file dataInput.txt and fix the error part. Create a Java NetBeans project. Read the instructions below carefully and make
How to find the text file " "dataInput.txt" and fix the error part. Create a Java NetBeans project. Read the instructions below carefullyand make sure follow the steps from the instructions. Do not skip any steps. NEED TO FOLLOW THE INSTRUCTIONS( do not mixed steps). Make sure including your OUTPUT. Make sure the code will work in NetBeans IDE 8.0.2.




Libraries Source BattersHittingPercentage Source Packages battershittingpercentage Copy text file and insert line numbers BattersHittingPercentage.java 4 package addlinenumbers; 5import java.io.*; 6 import java.util.Scanner; 7 public class AddLineNumbers f Libraries CarPlate Source Packages carplate public static void main String] args) throws FileNotFoundException, I0Exception Scanner scanner new Scanner(new FileReader("data!nput. txt")); PrintWriter writer new PrintWriter(new FileWriter("dataOutput. txt")); try CarPlate.java Libraries 10 b Cint_carplate 12 13 14 15 16 17 18 19 20 21 Source Packages cInt_carplate CarPlate-Java e CInt_carplate.java int count 1; String str ..". while (scanner.hasNextLine()) Libraries str += count++; str +. strscanner.nextLine(); str += " "; Coins Source Packages Coins.java writer.write(str) catch (Exception e) e.printstackTrace) main Navigator 23 24 25 Members
Step by Step Solution
There are 3 Steps involved in it
To resolve the error and complete the task follow these steps StepbyStep Solution Ensure the File Ex... View full answer
Get step-by-step solutions from verified subject matter experts
