Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.nio.ByteOrder;

public class Main {
    public static void main(String args[]) {
        ByteOrder b = ByteOrder.nativeOrder();

        if (b.equals(ByteOrder.BIG_ENDIAN)) {
            System.out.println("Big endian");
        } else {

            System.out.println("Little  endian");
        }
    }
}