to 60. But now I want the count to be reversed like 60 , 59 , 58 ,...
Observable.interval(1, TimeUnit.SECONDS, Schedulers.io())
.take(60)
.subscribe(
{
timer = String.format("%d:%02d", it / 60, it % 60)
}
how can i set this counter reverse?
Please format the code you posted, by wrapping it in triple backticks. -> `
Обсуждают сегодня