Java Array Has inArray(char[] array, char c)

Here you can find the source of inArray(char[] array, char c)

Description

in Array

License

Apache License

Declaration

private static boolean inArray(char[] array, char c) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    private static boolean inArray(char[] array, char c) {
        char[] arr$ = array;
        int len$ = array.length;

        for (int i$ = 0; i$ < len$; ++i$) {
            char ch = arr$[i$];
            if (ch == c) {
                return true;
            }/*from ww  w .  j a  va  2s.  c o  m*/
        }

        return false;
    }
}

Related

  1. arrayHasContiguousRowEntries(double[] aVector)
  2. arrayHasElements(Object[] obj)
  3. arrayHasTaints(int[] a)
  4. inArray(byte needle, byte[] haystack)
  5. inArray(byte needle, byte[] haystack)
  6. inArray(final String s, final String[] array)
  7. inArray(final T[] array, final U search)
  8. inArray(int[] arr, int search)
  9. inArray(int[] array, int needle)