Example
Determine whether two arrays are identical.
String[] String[] System. |
The equals() method verifies if two arrays are equivalent.
Note: Two arrays are considered equal if they possess identical elements arranged in the same order.
Arrays.compare(array1,
|
Parameter |
Description |
array1 |
Necessary: Rephrase the array for comparison against array2. |
array2 |
Essential: Rephrase the array intended for comparison with array1. |
Returns: |
Returns true if the arrays are identical.
|