+ 7

Java time subtraction and countdown

Am creating a desktop app for my school using netbeans and am trying to get a countdown by subtracting the time now from the a given time constant to find the number of hours in between and use it as a countdown... Please if you have any answers i would be grateful

29th May 2019, 9:19 AM
Owen Jay
Owen Jay - avatar
1 Odpowiedź
0
One of many possible ways is to use java.time (requires at least java 8) Follow the link in the code for other options. https://code.sololearn.com/c7So18dz1GiH/?ref=app
1st Jun 2019, 2:47 AM
Tibor Santa
Tibor Santa - avatar