實現 strStr()(簡單)

封裝的方法效率是最好的,看源碼 public int indexOf(int ch, int fromIndex) {         final int max = value.length;         if (fromIndex < 0) {             fromIndex = 0;         } else if (fromIndex >= max) {        
相關文章
相關標籤/搜索