When i try to compile this:
public static Rand searchCount (int[] x) { int a ; int b ; ... for (int l= 0; l
Set variable "a" to some value like this,
a=0;
Declaring and initialzing are both different.
Good Luck