自从JavaAPI&RegExp用熟练了之后就变得越来越任性越来越懒了):
public class Solution { public int strStr(String haystack, String needle) { return haystack.indexOf(needle); } }