Online Java Compiler By
JavaTpoint.com
public class IncrementExactExample1 { public static void main(String[] args) { int a = 674; System.out.println(Math.incrementExact(a)); } }
Output