Hello everyone I am Aung Khant Kyaw!! Last week I posted about - TopicsExpress



          

Hello everyone I am Aung Khant Kyaw!! Last week I posted about Varargs(Variable argument). So Today I would like to post about Unicode of java. In java programming language,all of characters and strings are stored as ASCII codes format that cannot be understand by user easily. Unicode is a 16-bit character encoding that supports the worlds major languages. In the Java programming language char values represent Unicode characters. Some character such as ö character cannot represent by ASCII code.If you want to write this character on java,you can write by using escape sequence.Escape sequence is used to write some characters that cannot be support by ASCII.The format of escape sequence is \uXXXX where each X in the escape sequence is a hexadecimal digit.For example when you write \u00F6, ö will get.Let see the following Hello World program. -------------------------------------------------- package javaexample; public class JavaSample {   public static void main(String[] arg) {     String unicode = \u0048\u0065\u006C\u006C\u006F \u0057\u006F\u0072\u006C\u0064;          System.out.println(unicode);    } } -------------------------------------------------- When this program run, Hello World will output on console. Not only Hello World,you can use this escape sequence for other characters. Now you will be know Unicode is used to understand by human easily. See you next time. :D
Posted on: Thu, 22 Jan 2015 09:38:27 +0000

Trending Topics



Often we miss expressing our gratitude to those who are around and
POLITICS WHITE HOUSE Obama Appoints Ron Klain As Ebola Czar A

Recently Viewed Topics




© 2015