Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

I forgot more one question --- ops,, sorry

 
Fernando hiar
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why I initialize the variable tailPosn and headPosn in -1 both, if I initialize the botn in the middle of JPanel???


thanks,

sorry,

Fernando.
 
pete stein
Bartender
Posts: 1561
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Fernando hiar wrote:Why I initialize the variable tailPosn and headPosn in -1 both, if I initialize the botn in the middle of JPanel???

It would probably help a lot if you would provide context for this question. Myself, on reading this, I can't make heads or tails out of it.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic