How do I print Unicode of your full name?

Asked 11-Mar-2018
Updated 03-Apr-2018
Viewed 796 times

1 Answer


1

Unicode:
Unicode is new ideas to setting up character format to binary code. Unicode is a ‘universal international’ standard character encoding format that is used to represent unique number of every character. It is a powerful universal code for interchanging, processing and displaying the written character in numerical format. It is also used to find the Unicode value of any special symbol.
Unicode format provide a unique value of every character, and it also resolve the problem of platform in dependencies. In java & other programming language the Unicode value for Uppercase is (65-90) & for Lowercase(97-122).
How do I print Unicode of your full name?
Find the Unicode of any String:
import java.util.*;
public class DisplayUnicode{
     public static void main(String []args){
         Scanner scanner = new Scanner(System.in);
         System.out.println("Enter Your Name…");
          String name=scanner.nextLine();
       // String name="Hello";
         for(int i=0;i<name.length();i++)
         {
            System.out.println(name.charAt(i)+"="+(int)name.charAt(i));
         }
     }
}