Mike Osterhout wrote:Is there a way that I could return just that one inventory object that was created rather than the array of them?
Also when I make newinv[] non static it gives me the nonstatic variable cannot be referenced from a static context.
Mike Osterhout wrote:I changed my startinv methods to look like this
This does not help the problem of the bad for loop, any ideas?
Mike Osterhout wrote:Ok when I take your advice and make newinv[] and startinv1() non static I am unable to reference any of there stuff.
I think that this is a key concept to understand. Can you provide some insight?
[My Blog]
All roads lead to JavaRanch
Mike Osterhout wrote:
notice it grabs the last array 3 times...