Originally posted by Waria Ahmed:
What is the best way of fixing this?
Joanne
for (shopIndex = 0; shopIndex < 350; shopIndex++)
SCJP, SCWCD.
|Asking Good Questions|
Joanne
Joanne
For a start there is a bug just waiting to happen - consider the case where you have 350 shops - you won't get any output.
SCJP, SCWCD.
|Asking Good Questions|
It's line 35 you want; I see you have found it. The line where the problem occurs is printed first in the stack trace.Originally posted by Waria Ahmed:
line 35 is
line 340 is
basically shopAdmin.java has a main() which runs the in shop.java.
Consider Paul's rocket mass heater. |