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.