java.lang.Math.nextAfter(double start, double direction) java.lang.Math.min(long a, long b) java.lang.Math.nextAfter(float start, double direction) java.lang.Math.nextAfter(double start, double direction) package com.codingdict; import java.lang.*; public class MathDemo { public static void main(String[] args) { // get two double numbers double x = 98759.765; double y = 154.28764; // print the next number for x towards y System.out.println("Math.nextAfter(" + x + "," + y + ")=" + Math.nextAfter(x, y)); // print the next number for y towards x System.out.println("Math.nextAfter(" + y + "," + x + ")=" + Math.nextAfter(y, x)); } } java.lang.Math.min(long a, long b) java.lang.Math.nextAfter(float start, double direction)