Advertisement
jameh

Why do you care if it hasn't been initialized?

Nov 21st, 2013
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.38 KB | None | 0 0
  1. int[][] jobData;
  2. try {
  3.     jobData = getJobData(args[0]);
  4. } catch (ArrayIndexOutOfBoundsException e) {
  5.     System.out.println("Please provide a data file.");
  6.     System.exit(1);
  7. }
  8. System.out.println(jobData[0][0]);
  9.  
  10. >>> error: variable jobData might not have been initialized
  11.         System.out.println(jobData[0][0]);
  12.                            ^
  13. 1 error
  14. [Finished in 0.9s]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement