In this tutorial you will see the use of equals() method of IntBuffer class in java.
In this tutorial you will see the use of equals() method of IntBuffer class in java.In this tutorial, we will check int buffer is equal to another buffer or not.
IntBuffer API:
The java.nioIntBuffer class extends java.nio.Buffer class. It provides the following methods:
Return type | Method | Description |
static IntBuffer | allocate(int capacity) | The allocate(..)method allocate a new int buffer. |
boolean | equals(object obj) | The equals() method tells this buffer is equals or not to another object. If another buffer is not int buffer method returns false. |
abstract IntBuffer | put(int i) | The put(..)method write a given int value at current position. |
import java.nio.*;
|
C:\l>java
EqualDemo Not equal Equal Not equal |