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) {
        System.out.println(Math.round(10f));
        System.out.println(Math.round(2.5f));
        System.out.println(Math.round(-1.4f));
        System.out.println(Math.round(-2.5f));

    }

}
/*
10
3
-1
-2
*/