The char assignment has "too many characters in the character literal" in the assignment, char c = '\\u0027';.
As you can't do
it is not possible to assign
The reason is, your first escape escapes the second one. What I mean is, it would have been perfectly ok if you have said,
And the resultant \ is not goin to be the escape part of the following u0027
So, you can see the rest of the characters are not valid for a char primitive type.
This escape business gave me headache for a while. Jose helped me out on one occasion. Here is the link if you're interested:
https://coderanch.com/t/240199/java-programmer-SCJP/certification/unicode-escapes [ December 12, 2002: Message edited by: Abu Yoosuf ]