File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes Array Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Array" Watch "Array" New topic
Author

Array

Frantz Fleury
Greenhorn

Joined: Jan 30, 2004
Posts: 1
while running a java program, I got this error message:
ArrayIndexOutOfBoundsException.
Can you help?
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24166
    
  30

Hi,
Welcome to JavaRanch!
I'm moving this to our Java beginner's forum.


[Jess in Action][AskingGoodQuestions]
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24166
    
  30

Given an array with N elements, you can use an index ranging from 0 to N-1. Using any other index value with the array will give an ArrayIndexOutOfBoundsException.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Array