What was the last line printed out before the error?
For more info add this after the call to split()
System.out.println("theLines=" + java.util.Arrays.toString(theLines));
Type: Posts; User: Norm
What was the last line printed out before the error?
For more info add this after the call to split()
System.out.println("theLines=" + java.util.Arrays.toString(theLines));
What variable is null at line 38 in your program? When you see which one, back track to see why it has a null value.
Can you describe what happens?
Print out the contents of the line variable...
Can you explain what your problem is? Does the program compile ok and execute?
If not, copy and paste here the full text of the error message.
If it executes, does it do what you want?
If not show...