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) {

        double x = 12.34;
        int y = 4;

        // calculate x multiplied by 2 raised in y
        System.out.println("Math.scalb(" + x + "," + y + ")=" + Math.scalb(x, y));

    }
}