java_函数手册_String_1.2_codePointBefore_提取前一个索引字符代码点
1 package calssString; 2 3 public class codePointBefore___1_3 { 4 public static void main(String []args) { 5 6 String strCom = "I LIKE JAVA"; 7 int strLower = strCom.codePointBefore(8); 8 System.out.println(strLower); 9 10 strCom = "I LIKE J爱VA"; 11 strLower = strCom.codePointBefore(8); 12 System.out.println(strLower); 13 14 strCom = "I LIKE J1VA"; 15 strLower = strCom.codePointBefore(8); 16 System.out.println(strLower); 17 } 18 }