The following piece of code:
if (e.getSource() == btnRe) {
lblCounter.setText(count - count);
}
Throws the exception:
Exception: Incompatible tpyes: int cannot be converted to String "count - count"
I don't know how to change count into an integer that the method setText can read.
String.valueOf()String#valueOf(count - count). But, on the other hand,count - countisn't0? Or what are you trying to achieve?"0"?