Java Array Has arrayHasTaints(int[] a)

Here you can find the source of arrayHasTaints(int[] a)

Description

array Has Taints

License

Open Source License

Declaration

public static boolean arrayHasTaints(int[] a) 

Method Source Code

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

public class Main {
    public static boolean arrayHasTaints(int[] a) {
        for (int i : a)
            if (i != 0)
                return true;
        return false;
    }/*  w  w w .j a va 2  s. c  o m*/

    public static boolean arrayHasTaints(int[][] a) {
        for (int[] j : a)
            for (int i : j)
                if (i != 0)
                    return true;
        return false;
    }

    public static boolean arrayHasTaints(int[][][] a) {
        for (int[][] k : a)
            for (int[] j : k)
                for (int i : j)
                    if (i != 0)
                        return true;
        return false;
    }
}

Related

  1. arrayHas(int[] arr, int val)
  2. arrayHasContent(Object[] array)
  3. arrayHasContiguousRowEntries(double[] aVector)
  4. arrayHasElements(Object[] obj)
  5. inArray(byte needle, byte[] haystack)
  6. inArray(byte needle, byte[] haystack)
  7. inArray(char[] array, char c)
  8. inArray(final String s, final String[] array)