+ 1

What does this mean in Android? (Solved)

The console keeps saying: insert VariableDeclaratorId to complete formalParameterList And I don't know what this means and the internet is no help.... How does this apply to what I'm trying to do? (Making one piece of code to run timers on different objects as shown below) Timer timer= new Timer(); TimerTask task= new TimerTask(){ public void run(thing){ cur= this.getX(); if(cur <500){ cur+= 2; this.setX(cur); } else{ this.setX(1/100); } } }; Shop item=new Shop(); timer.schedule(task(item), 0L, 10L * 1L); } }

16th Nov 2020, 9:59 AM
Cam UOR
Cam UOR - avatar
3 Answers
+ 5
Please move your code to code bit, that way it would be super easy to figure out the problem
16th Nov 2020, 10:02 AM
Ananiya Jemberu
Ananiya Jemberu - avatar
+ 1
Ananiya Jemberu Here is, thou I wanted it to run in Android which is why I'm asking what the term means https://code.sololearn.com/cGXaVBOmfzeS/?ref=app
16th Nov 2020, 11:38 AM
Cam UOR
Cam UOR - avatar
+ 1
Simple Are you wanting me to clarify my question more?
16th Nov 2020, 11:39 AM
Cam UOR
Cam UOR - avatar