Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.util.Arrays;

public class Main {

    public static void main(String[] args) {

        long lArr[] = { 131, 13, 2, 98, 11 };

        System.out.println(Arrays.toString(lArr));

        // sorting array from index 1 to 3
        Arrays.sort(lArr, 1, 3);

        System.out.println(Arrays.toString(lArr));
    }
}