java_函数手册_String_1.2_codePointAt_提取索引字符代码点
1 package calssString; 2 3 public class codePointAt___1_2 { 4 public static void main(String []args){ 5 /** 6 * 返回指定索引处的字符代码 7 */ 8 9 String strCom = "I LIKE JAVA"; 10 int strLower = strCom.codePointAt(8); 11 System.out.println(strLower); 12 13 strCom = "I LIKE J爱VA"; 14 strLower = strCom.codePointAt(8); 15 System.out.println(strLower); 16 17 strCom = "I LIKE J1VA"; 18 strLower = strCom.codePointAt(8); 19 System.out.println(strLower); 20 } 21 }