Online Java Compiler By
JavaTpoint.com
package tests; public class CharactercodePointAtMethodExample7 { public static void main(String[] args) { System.out.println("Hello"); char[] ch1 = new char[] { 'H', 'e', 'l', 'l', 'o' }; int index1 = 2, limit1 = 3; int res1 = Character.codePointAt(ch1, index1, limit1); System.out.println("Unicode code point for Hello is " + res1 ); System.out.println("The numbers are: '1', '2', '3', '4', '5' "); char[] ch2 = new char[] { '1', '2', '3', '4', '5' }; int index2 = 3, limit2 = 4; int res2 = Character.codePointAt(ch2, index2, limit2); System.out.println("Unicode code point for number is " + res1 ); } }
Output