0

Wap to add two times in java

Two time is given in hours , minutes and seconds . Also we need to add it by making object

29th Jul 2019, 12:15 PM
md kaif
md kaif - avatar
2 odpowiedzi
0
look for java.time.LocalTime you need LocalTime.parse() or LocalTime.of() convert time2 to second, use .toSecondOfDay() and add it to time1 .plusSeconds() print result (you get more answers if you taget it correctly: Java)
29th Jul 2019, 11:38 PM
zemiak
0
Thanks
30th Jul 2019, 6:08 PM
md kaif
md kaif - avatar