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 fObj1 = new Float("10.64");
        System.out.println(fObj1);

        Float fObj2 = Float.valueOf("10.76");
        System.out.println(fObj2);

        float f = Float.parseFloat("7.39");
        System.out.println(f);
    }
}