@pbl, In the provided code.
@OP, The integers in the constructors are used as indices for the boolean array.
17 Replies - 379 Views - Last Post: 04 October 2012 - 05:12 AM
#17
Re: Java- Initializing integers in constructor
Posted 04 October 2012 - 04:56 AM
pbl, on 04 October 2012 - 04:47 AM, said:
How funny, the word boolean does not appear at all in your original assignment as presented by your teacher 
So what is all this arguing that you have to do it the way your teacher wants it done (aka with boolean) ?
So what is all this arguing that you have to do it the way your teacher wants it done (aka with boolean) ?
In class, we were told to only use the 2 member variables provided in the starter code. I'm sure I can do it another, much simpler way but that would knock a lot of points off... That's why he gave us this code and didn't just have us do it our own way.
#18
Re: Java- Initializing integers in constructor
Posted 04 October 2012 - 05:12 AM
Quote
In class, we were told to only use the 2 member variables provided in the starter code. I'm sure I can do it another, much simpler way but that would knock a lot of points off... That's why he gave us this code and didn't just have us do it our own way.
So do you understand how to do it now, or not? If so, quit digging.
|
|

New Topic/Question
Reply




MultiQuote


|