language:Java
The output for this code is:W
But if i want to break it and then use it, like the below, it doesnt consider it as a unicode....it takes it as a string.
Output:\u0057
The purspose is that i would like to generate random numbers(for the last 2 digits of the unicode),basica lly to generate different unicodes.
Code:
String code="\u0057"; System.out.println(code);
But if i want to break it and then use it, like the below, it doesnt consider it as a unicode....it takes it as a string.
Code:
String code="\\u"; code+="0057"; System.out.println(code)
The purspose is that i would like to generate random numbers(for the last 2 digits of the unicode),basica lly to generate different unicodes.
Comment