Java Array Difference difference5D(char[][][][][] first, char[][][][][] second)

Here you can find the source of difference5D(char[][][][][] first, char[][][][][] second)

Description

difference D

License

Open Source License

Declaration

public static int difference5D(char[][][][][] first, char[][][][][] second) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static int difference5D(char[][][][][] first, char[][][][][] second) {
        int result = 0;
        for (int i1 = 0; i1 < first.length; i1++) {
            for (int i2 = 0; i2 < first.length; i2++) {
                for (int i3 = 0; i3 < first.length; i3++) {
                    for (int i4 = 0; i4 < first.length; i4++) {
                        for (int i5 = 0; i5 < first.length; i5++) {
                            if (first[i1][i2][i3][i4][i5] != second[i1][i2][i3][i4][i5]) {
                                result++;
                            }/*w ww  .  j  av  a2s  .c om*/
                        }
                    }
                }
            }
        }
        return result;
    }
}

Related

  1. difference(float[] v1, float[] v2)
  2. difference2D(char[][] first, char[][] second)
  3. differenceFunction(float[] data, int windowLength)