Online Java Compiler By
JavaTpoint.com
public class NextUpExample3 { public static void main(String[] args) { float a = 328.7f; // Input float value, Output adjacent floating-point System.out.println(Math.nextUp(a)); } }
Output