I have a function:
void NumberPressed(
String x)
{
Display.setText(x);
}
Which I am trying to call with:
NumberPressed(toString(Count + 1));
But I keep getting this error when compiling:
toString() in java.lang.Object cannot be applied to (int)
NumberPressed(toString(count + 1));
What am I doing wrong?
Thanks