Online Java Compiler By
JavaTpoint.com
public class CharactercodePointBeforeMethodExample7 { public static void main(String[] args) { System.out.println("Welcome to our tutorial site:"); CharSequence seq1 = "Hello"; int index1 = 4; CharSequence seq2 = "Everyone"; int index2 = 3; int res1 = Character.codePointBefore(seq1, index1); String str1 = "The Unicode code point for Java is " + res1; System.out.println( str1 ); int res2 = Character.codePointBefore(seq2, index2); String str2 = "The Unicode code point for Everyone is " + res2; System.out.println( str2 ); } }
Output