import java.util.Arrays; public class Main { public static void main(String[] args) { float[] a1 = new float[] { 4.4f, 3.3f, 5.3f }; float[] a2 = new float[] { 4.4f, 3.3f, 5.3f }; System.out.println(Arrays.equals(a1, a2)); } }