首页 > 编程语言 > 详细

java_函数手册_String_1.2_codePointCount_获取指定范围文本代码点

时间:2018-03-24 12:37:41      阅读:282      评论:0      收藏:0      [点我收藏+]
 1 package calssString;
 2 
 3 public class codePointCount___1_4 {
 4     public static void main(String[] args) {
 5         String strCom = "I LIKE JAVA";
 6         int strLower = strCom.codePointCount(2,9);
 7         System.out.println(strLower);
 8 
 9         strCom = "I LIKE J爱VA";
10         strLower = strCom.codePointCount(2,9);
11         System.out.println(strLower);
12 
13         strCom = "I LIKE J1VA";
14         strLower = strCom.codePointCount(2,9);
15         System.out.println(strLower);
16     }
17 }

技术分享图片

 

java_函数手册_String_1.2_codePointCount_获取指定范围文本代码点

原文:https://www.cnblogs.com/alimjan/p/8638357.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!