Java IO Tutorial - Java ByteOrder.toString()








Syntax

ByteOrder.toString() has the following syntax.

public String toString()

Example

In the following code shows how to use ByteOrder.toString() method.



import java.nio.ByteOrder;

public class Main {
  public static void main(String[] argv) throws Exception {
    System.out.println(ByteOrder.BIG_ENDIAN.toString());
  }
}

The code above generates the following result.