Java- Initializing integers in constructor

  • (2 Pages)
  • +
  • 1
  • 2

17 Replies - 728 Views - Last Post: 04 October 2012 - 05:12 AM Rate Topic: -----

#16 GregBrannon  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 2197
  • View blog
  • Posts: 5,224
  • Joined: 10-September 10

Re: Java- Initializing integers in constructor

Posted 04 October 2012 - 04:53 AM

@pbl, In the provided code.

@OP, The integers in the constructors are used as indices for the boolean array.
Was This Post Helpful? 0
  • +
  • -

#17 Hambuh  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 14
  • Joined: 20-September 12

Re: Java- Initializing integers in constructor

Posted 04 October 2012 - 04:56 AM

View Postpbl, 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) ?


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.
Was This Post Helpful? 0
  • +
  • -

#18 GregBrannon  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 2197
  • View blog
  • Posts: 5,224
  • Joined: 10-September 10

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.
Was This Post Helpful? 0
  • +
  • -

  • (2 Pages)
  • +
  • 1
  • 2