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 f = 10.10f;
        Float fObj1 = new Float(f);

        System.out.println(fObj1);

        double d = 10.10;
        Float fObj2 = new Float(d);
        System.out.println(fObj2);

        Float fObj3 = new Float("25.34");
        System.out.println(fObj3);

    }

}