When i try to compile this:
public static Rand searchCount (int[] x) { int a ; int b ; ... for (int l= 0; l
You declared them, but not initialized.
int a; // declaration, unknown value a = 0; // initialization int a = 0; // declaration with initialization