I would like to have you help of private Duration duration = Duration.ofMinutes(0);
it is set for 0 minute. I have this line of code in as a class variable. It supposed to be a counter. It counts back from the time set. What i have done is, I have created a GUI and created a texfield where user can enter an integer and that integer should be passed to the Duration.ofMintues()
. I have tried many different ways without succeed, now i would like to ask your help to countinue on with it.
reference: csibman Java: How to convert a string (HH:MM:SS) to a duration?