摘要: 查找指定字符或字符串在字符串中第一次出现地方的索引,未找到的情况返回 -1. 例如 String.indexOf(String str) String str1="012345"; String str2="23"; System.out.println( str1.indexOf(str2) ); 阅读全文
posted @ 2019-04-24 15:19 闻长歌而知雅意 阅读(1658) 评论(0) 推荐(0) 编辑