import java.util.Arrays; public class Main { public static void main(String[] argv) throws Exception { boolean b = Arrays.equals(new double[] { 0D }, new double[] { 0D }); // true } }