Hi all,
here's a program which refuses to compile. I don't know what is the problem. Could anyone help me?
The code
---------
public class Unicode
{
public static void main(
String a[])
{
char c1 = '\u000a'; // 1.
char c2 = '\u000b'; // 2.
System.out.println("c1 = " + c1 );
System.out.println("c2 = " + c2);
}
}
---------
The compiler gives error :- invalid character constant and ';' expected at line 1.
Thanx in advance.
-vadiraj