IntBuffer.order() has the following syntax.
public abstract ByteOrder order()
In the following code shows how to use IntBuffer.order() method.
import java.nio.IntBuffer; /*w ww. jav a2 s. co m*/ public class Main { public static void main(String[] args) { IntBuffer bb = IntBuffer.allocate(10); bb.put(100); System.out.println(bb.order()); } }
The code above generates the following result.