main "
Code:
import java.util.Scanner;
public class xc {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner s1 = new Scanner(System.in);
System.out.println("enter input");
String input = s1.nextLine();
//char [] chars = { '1', 'a', '\u0152'};
char [] chars = input.toCharArray();
String result = "";
for( int i = 0; i < chars.length; i++) {
System.out.printf(" char = %c codepoint = \\u%04x \n", chars[i], Character.codePointAt(chars, i));
result += ("\\u" + Integer.toHexString(chars[i] | 0x10000).substring(1) );
}
System.out.println(result);
}
}