哈哈哈哈我喜欢写这种题......
28. 找到字符串中的第一个匹配项的下标
题目:


题解:
java
class Solution {
public int strStr(String haystack, String needle) {
return haystack.indexOf(needle);
}
}