Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

public class Main {
    public static void main(String[] unused) {
        do_shorts();
        do_ints();
    }

    protected static void do_shorts() {
        short i = Short.MAX_VALUE;
        System.out.println("i=" + i++);
        System.out.println("i=" + i++);
        System.out.println("i=" + i++);
    }

    protected static void do_ints() {
        int i = Integer.MAX_VALUE;
        System.out.println("i=" + i++);
        System.out.println("i=" + i++);
        System.out.println("i=" + i++);
    }
}