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
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