Something
public text v1 · immutable public void run() {
try {
while(true) {
if(threadRuns == 1) return;
System.out.println("Thread töötab.."+threadRuns);
Thread.sleep(2000);
}
} catch(Exception e) { System.out.println("proobla "+e); }
}