Here you can find the source of charArrayContains(final char e, final char[] f)
f
, contains the input char, e
.
Parameter | Description |
---|---|
e | a parameter |
f | a parameter |
private static boolean charArrayContains(final char e, final char[] f)
//package com.java2s; //License from project: Open Source License public class Main { /**// www .j a v a2 s. co m * Returns true if the char[], <code>f</code>, contains the input char, * <code>e</code>. * * @param e * @param f * @return */ private static boolean charArrayContains(final char e, final char[] f) { for (final char z : f) { if (e == z) { return true; } } return false; } }