почему принял такое решение?
try {
while(true) {
seconds++;
Thread.sleep(1000);
}try {
while(true) {
seconds++;
Thread.sleep(1000);
}