MainClass.java Source code

Java tutorial

Introduction

Here is the source code for MainClass.java

Source

import java.util.Arrays;

public class MainClass {
    public static void main(String[] a) {
        int array[] = { 2, 5, -2, 6, -3 };
        Arrays.sort(array);
        for (int i : array) {
            System.out.println(i);
        }
    }
}