I'm trying to access the array A outside the try function, but it says that the symbol cannot be found. How can I access the array A outside the try method ?
try {
String filePath = "//Users/me/Desktop/list.txt";
int N = 100000;
int A[] = new int[N];
Scanner sc = new Scanner(new File(filePath));
for (int i = 0; i < N; i++)
{
A[i] = sc.nextInt();
}
} catch (IOException ioe) {
System.out.println("IOException: " + ioe);
}