Type mismatch convert char[] to an object

Viewed 525

I'm sure I'm missing something simple but this problem seems absolutely stupid.

private static void method501(char ac[])
{
    char ac1[] = ac.clone();
}

My problem is that the char ac1[] = ac.clone(); is throwing a type mismatch error in eclipse telling me that I can't convert a char array to an Object?

Any reason why this is? It was not giving me the same error on the newest version of eclipse so wondering if it's just this older version is giving me the problem.

1 Answers
Related