@@ -0,0 +1,812 @@
+package com.littleji.leetcode;%0A%0Aimport java.util.HashMap;%0A%0A/**%0A * Created by Jimmy on 2016/10/21.%0A */%0Apublic class No28_Implement_strStr %7B%0A    public int strStr(String text, String pattern) %7B%0A        int result = 0;%0A        if (pattern == null %7C%7C text == null) return -1;%0A        if (pattern.equals(%22%22)) return 0;   // %E5%A6%82%E6%9E%9C%E6%A8%A1%E5%BC%8F%E4%B8%B2%E4%B8%BA%E7%A9%BA%EF%BC%8C%E8%AE%A4%E4%B8%BA%E7%AC%AC0%E4%BD%8D%E5%B7%B2%E7%BB%8F%E5%8C%B9%E9%85%8D%0A        int tlen = text.length(), plen = pattern.length();%0A        if (plen %3E tlen) return -1;%0A        HashMap map = new HashMap(plen + 1);%0A        for (int i =0; i%3Cplen; i++) map.put(pattern.charAt(i), i);%0A        System.out.println(map.toString());%0A        return -1;%0A    %7D%0A    public static void main(String %5B%5D args)%7B%0A        No28_Implement_strStr a = new No28_Implement_strStr();%0A        int re = a.strStr(%2212387683124123%22,%22768%22);%0A        System.out.println(re);%0A    %7D%0A%7D%0A

add the problem No28