Duration plusNanos(long) method in Java with Examples
The plusNanos(long) method of Duration Class in java.time package is used to get an immutable copy of this duration with the specified number of nano-seconds added, passed as the parameter. Syntax: public Duration plusNanos(long numberOfNanos) Parameters: This method accepts a parameter numberOfNano