ok i need to make the part where is says gamelength * 1 a statement in this code
class GCTask extends TimerTask { public void run() { gamelength + 1 ; // this part ............<<that one right there System.gc(); } } } public class timer { public static void main(String[] args) { Timer timer = new Timer(); GCTask task = new GCTask(); timer.schedule(task, 1000, 1000); int counter = 1; while (true) { try { Thread.sleep(500); } catch (InterruptedException e) { } } }