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