comparing arrays in java

Use Arrays.equals method. Example:

boolean b = Arrays.equals(nir1, nir2); //prints true in this case

Leave a Comment