java.time.LocalTime.plus(TemporalAmount amountToAdd)


java.time.LocalTime.plus(TemporalAmount amountToAdd)

package com.codingdict;

import java.time.Duration;
import java.time.LocalTime;

public class LocalTimeDemo {
   public static void main(String[] args) {

      LocalTime time = LocalTime.parse("10:15:30");
      LocalTime time1 = time.plus(Duration.ofHours(10));
      System.out.println(time1);  
   }
}