I am trying to write the instructions to notice when circle is about to be 12 and then add 1 to square.
The code below works fine for me
int x = Integer.parseInt(circle.getText());
x = x + 1;
String z = Integer.toString(x);
circle.setText(z);
However, I am having trouble with these new instructions I am trying to write. How can I get square, convert to integer, add 1 and then put the value back?
int q = Integer.parseInt(square.getText());
x = q + 1;
square.setText(x);
int.Integer.toString(x). In the second you do not. Why do you think it's not required.