java.lang.Math.nextUp(float d) java.lang.Math.nextUp(double d) java.lang.Math.pow(double a, double b) java.lang.Math.nextUp(float d) package com.codingdict; import java.lang.*; public class MathDemo { public static void main(String[] args) { // get two float numbers float x = 98759.765f; float y = 154.28764f; // print the next floating numbers towards positive infinity System.out.println("Math.nextUp(" + x + ")=" + Math.nextUp(x)); System.out.println("Math.nextUp(" + y + ")=" + Math.nextUp(y)); } } java.lang.Math.nextUp(double d) java.lang.Math.pow(double a, double b)