Online Java Compiler By
JavaTpoint.com
public class CharactercodePointAtMethodExample9 { public static void main(String[] args) { System.out.println("Java is secured"); //System.out.println("The Unicode code point for Java is " + res1); CharSequence s= "Java"; int index1 = 2; int res1 = Character.codePointAt(s,index1); System.out.println("The Unicode code point for Java is " + res1); System.out.println("The numbers are: '1', '2', '3', '4', '5' "); // System.out.println( "The Unicode code point for number is " + res2 ); char[] ch = new char[] { '1', '2', '3', '4', '5' }; int index2 = 3; int res2 = Character.codePointAt(ch, index2); System.out.println( "The Unicode code point for number is " + res2 ); } }
Output