sample example to show char unicode representation
/* sample example to show charwith unicode representation.
Unicode representation in nothing but u followed by 4 digit
hexadecimal number .(only small u,capital u is not allowed).*/
package literals;
public class CharUnicode {
public static void main(String[] args) {
char ch='\u0061'; // here we will get a
char ch1='\uface'; // valid output: ?
}
}
0 comments:
Post a Comment