Question: This is my code for simply creating a file instance. But my output is File does not exist, which means that it's going through the
This is my code for simply creating a file instance. But my output is "File does not exist", which means that it's going through the catch block? I have PovertyData.txt in the sam folder as this program, so I am unsure why it does that
public static void main(String[] args){ File file = new File("PovertyData.txt"); //create file instance Scanner input = null; int lineNum = 0; ArrayList
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
