Hello, im trying to learn how to use threads, this is my code:
testThread = new Thread(new Runnable() {
int timer = 0;
@Override
public void run() {
timer++;
if (timer == 200) {
timer = 0;
System.out.println("Example message");
}
}
});
testThread.start();
``` but it doesnt work, please help