"Learn Java Programming" 字符串中第一次出现 'a' 的位置是索引2、但是,第二个 'a' <的索引code> 在使用 str1.indexOf('a', 4) 时返回。这是因为搜索从索引4 开始。
確定! 回上一頁