Okay, well this is my first post here. I've been going through Head First
Java and I've gotten up to chapter 13.
On page 415 there is a JTextArea example that looks like this:
I've played around with the code a bit just for my own experimentation and I was trying to get the code to make it so that after you had clicked the button so many times it would change the output.
Like if you pressed it a second time it would say 'button clicked twice'
and then again after it was pressed a third time it would say "button clicked thrice'
My instincts tell me that I would need an if/else statement but I can't get anything to work. The answer is probably more simple than it looks, but how would this be accomplished?