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.34f, f2 = 56.78f;

        System.out.println("closest int value to " + f1 + " = " + StrictMath.round(f1));

        System.out.println("closest int value to " + f2 + " = " + StrictMath.round(f2));
    }
}