Online Java Compiler By
JavaTpoint.com
public class NextAfterExample4 { public static void main(String[] args) { float a = Float.MAX_VALUE; float b = 793.37f; System.out.println(Math.nextAfter(a, b)); } }
Output