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 How do return double integer array from a method? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "How do return double integer array from a method? " Watch "How do return double integer array from a method? " New topic
Author

How do return double integer array from a method?

Ravi Sathish
Ranch Hand

Joined: Feb 26, 2002
Posts: 131
Hi
Its been since I touched java. I am facing this peculiar run-time error arrayindex out of bounds exception?
Please help...
my code
main()
{
int employeematrix[][]= new int[8][7];
int result[][]= compute(employeematrix);
}
int[][] compute(int emp[][])
{

.....................
...
...
return emp1;
}
Thanx
Rich Raposa
Ranch Hand

Joined: Dec 06, 2001
Posts: 46
The part causing the runtime exception is likely in the "............" section of your post.


Rich Raposa<br /><a href="http://www.javalicense.com" target="_blank" rel="nofollow">http://www.javalicense.com</a><br />Buy Java courseware -> get a free XBox!
Jasper Vader
Ranch Hand

Joined: Jan 10, 2003
Posts: 284
no i think it is in the
"...
..."
section after the "........." section!
haha sorry just joking. but i think Rich is right ... the compute method is doing something that is returning a value outside of the limits you specified.


giddee up
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How do return double integer array from a method?
 
Similar Threads
what can i do to make my code right???
how my scrollbar works?
Can't get the result of factorial method
WA #1.....word association
recursive binary search : used code may have alternative?