Lowest price ever! Learn Generative AI for 48% less!
Get my discount0
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
2 Answers
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)
0
Thanks