View RSS Feed

tonie

[HELP] java.lang.ArrayIndexOutOf BoundsException

Rate this Entry
by , 10-18-2013 at 10:58 AM (1769 Views)
Quote Originally Posted by SurfMan View Post
Quote Originally Posted by tonie View Post
I thought it was something like that, but I don't understand because I have this in the text file and it has 8 strings and 1 int. But this is what I got in the text file.



I'm sorry, but I don't know how to do SOP variable to check. I would appreciate if you could show me how.
Java Code:
while(input.hasNext()) {
    word = input.nextLine();
    System.out.println("The line is " + word);
    tokenArray = word.split(";");
    System.out.println("The array contains: " + Arrays.toString(tokenArray));
             
    if(tokenArray[0].equals("public")) {
        ....

Submit "[HELP] java.lang.ArrayIndexOutOf BoundsException" to Facebook Submit "[HELP] java.lang.ArrayIndexOutOf BoundsException" to Digg Submit "[HELP] java.lang.ArrayIndexOutOf BoundsException" to del.icio.us Submit "[HELP] java.lang.ArrayIndexOutOf BoundsException" to StumbleUpon Submit "[HELP] java.lang.ArrayIndexOutOf BoundsException" to Google

Tags: None Add / Edit Tags
Categories
Uncategorized

Comments