Java String Unicode Code Point Example
Chapter:
String Handling
Last Updated:
28-08-2016 18:56:34 UTC
Program:
/* ............... START ............... */
public class JavaStringUnicodeExample {
public static void main(String[] args) {
String test_string = "Welcome to JavaScan.com";
System.out.println("String under test is = " + test_string);
System.out.println("Unicode code point at" + ""
+ " position 5 in the string is = " + test_string.codePointBefore(5));
}
}
/* ............... END ............... */
Output
String under test is = Welcome to JavaScan.com
Unicode code point at position 5 in the string is = 111
Tags
String Unicode Code Point Example, String, Java