Comparing arrays not working correctly?
Here is how you can Compare two char array in java
You can try:
Arrays.equals(); // <---- One Dimensional Arrays or ArrayUtils.isEquals(); // <---- Multi Dimensional Arrays
The forgoing Array methods can be used to compare the contents of the two arrays.
Post Answer
Preview: