LeetCode

                  自从JavaAPI&RegExp用熟练了之后就变得越来越任性越来越懒了):

 

public class Solution {
    public int strStr(String haystack, String needle) {
        return haystack.indexOf(needle);
    }
}
原文地址:https://www.cnblogs.com/wxisme/p/4389418.html