Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

public class Main {

    public static void main(String[] args) {

        float f1 = 12.3f, f2 = 0.0f;

        System.out.println(StrictMath.nextAfter(f1, 9.2d));

        System.out.println(StrictMath.nextAfter(f2, 9.2d));

        System.out.println(StrictMath.nextAfter(f2, 0.0d));
    }
}