Friday 13 June 2014

Display Unicode Characters in Java


class AllUniCodes{
 public static void main(String args[]){
  for (int i=0; i<=Integer.MAX_VALUE; i++){
   if (Character.isDefined(i)){
    System.out.println(Integer.toHexString(i)+": "+new String(Character.toChars(i)));
   }
  }
 } 
}



                                                             Home

No comments:

Post a Comment