Results 1 to 4 of 4
  1. #1
    Join Date
    Jun 2011
    Posts
    24
    Rep Power
    0

    Default Array bound exception

    Hello,

    I have an error like this,

    Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 1
    at test.main(test.java:38)

    At line 38, the code is StringTokenizer st = new StringTokenizer(s4[1], ".");

    Can some one help me on this???

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

  3. #3
    Junky's Avatar
    Junky is offline Grand Poobah
    Join Date
    Jan 2011
    Location
    Dystopia
    Posts
    3,798
    Rep Power
    7

    Default

    Oooh! Oooh! Oooh! Meeester Kotterrrr!

    The length is either 0 or 1. Kinda pointless if it is though.

  4. #4
    makpandian's Avatar
    makpandian is offline Senior Member
    Join Date
    Dec 2008
    Location
    Chennai
    Posts
    450
    Rep Power
    6

    Default

    you better post your entire main method...
    Mak
    (Living @ Virtual World)

Similar Threads

  1. array out of bound exception
    By farahm in forum New To Java
    Replies: 6
    Last Post: 12-19-2010, 09:10 PM
  2. Array index out of bound exception error
    By rahulkrishnanr in forum Threads and Synchronization
    Replies: 7
    Last Post: 10-12-2010, 05:57 PM
  3. Array index Out of bound Exception
    By nitin_daviet88 in forum New To Java
    Replies: 9
    Last Post: 07-28-2010, 05:32 AM
  4. Array Index Out of bound exception
    By abhijit in forum Networking
    Replies: 7
    Last Post: 09-25-2009, 07:25 PM
  5. ArrayIndexout of Bound exception
    By Preethi in forum New To Java
    Replies: 2
    Last Post: 02-14-2008, 09:40 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •