Talk:Java Programming/Unicode

I do not agree with this :

String doubleQuote1 = "\""; String doubleQuote2 = "\\u0022"; // "\u0022" doesn't work since """ doesn't work.

I would rather write :

String doubleQuote1 = "\""; String doubleQuote2 = "\u005C\u0022";

this main shows the results :

String doubleQuote1 = "\""; String doubleQuote2a = "\\u0022"; String doubleQuote2b = "\u005c\u0022"; System.out.println(doubleQuote1+"=?"+doubleQuote2a+" : "+doubleQuote1.equals(doubleQuote2a)) ; System.out.println(doubleQuote1+"=?"+doubleQuote2b+" : "+doubleQuote1.equals(doubleQuote2b)) ;

screen displays :

"=?\u0022 : false "=?" : true