Introduction
Here is the source code for Main.java
Source
public class Main {
public static void main(String[] args) {
float x = 12345.123f;
double y = 123.12345;
// print the next number for x towards y
System.out.println("Math.nextAfter(" + x + "," + y + ")=" + Math.nextAfter(x, y));
}
}