This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: How do return double integer array from a method?
 
jQuery in Action, 3rd edition