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 floatValue = 2.5f; // f indicates that 2.5 is a float
        System.out.printf("float = %s\n", String.valueOf(floatValue));
    }
}