Results 1 to 3 of 3
  1. #1
    hhadisi is offline Member
    Join Date
    Jan 2010
    Location
    indonesia
    Posts
    2
    Rep Power
    0

    Default java.lang.arrayindexoutboundexception:-11912555

    hello all

    I need some help regarding this matter. I am getting
    Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException:-11912555
    while I installing vuze.
    I am unable to understand why I am getting this error.

  2. #2
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,733
    Blog Entries
    7
    Rep Power
    21

    Default

    Quote Originally Posted by hhadisi View Post
    hello all

    I need some help regarding this matter. I am getting
    Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException:-11912555
    while I installing vuze.
    I am unable to understand why I am getting this error.
    Suppose you have an int array like this:

    Java Code:
    int[] a= new int[3];
    The valid index vanlues are 0, 1 and 2 because the array has three elements; now suppose you try to do this:

    Java Code:
    a[-11912555]= 42;
    Obviously this isn't a valid index value and that's why you receive that Exception. The Exception stack trace also showed the exact line number in your code where you tried to use such an out of bounds index value.

    kind regards,

    Jos

  3. #3
    hhadisi is offline Member
    Join Date
    Jan 2010
    Location
    indonesia
    Posts
    2
    Rep Power
    0

    Default

    Quote Originally Posted by JosAH View Post
    Suppose you have an int array like this:

    Java Code:
    int[] a= new int[3];
    The valid index vanlues are 0, 1 and 2 because the array has three elements; now suppose you try to do this:

    Java Code:
    a[-11912555]= 42;
    Obviously this isn't a valid index value and that's why you receive that Exception. The Exception stack trace also showed the exact line number in your code where you tried to use such an out of bounds index value.

    kind regards,

    Jos
    Can you help me for that problems, so what should I do? I need to install vuze

Similar Threads

  1. Replies: 5
    Last Post: 03-17-2011, 03:26 PM
  2. Replies: 4
    Last Post: 11-03-2009, 05:01 PM
  3. Replies: 3
    Last Post: 09-07-2009, 02:28 PM
  4. Replies: 4
    Last Post: 06-24-2009, 07:34 AM
  5. Replies: 2
    Last Post: 09-18-2008, 08:30 AM

Posting Permissions

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