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

        // get two integer numbers
        int x = 12345;
        int y = 1234;

        // print the larger number between x and y
        System.out.println("Math.max(" + x + "," + y + ")=" + Math.max(x, y));

    }
}