| 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
|
 |
 |
|
|
subject: How do return double integer array from a method?
|
|
|