LintCode 13---字符串查找
public class Solution { /** * @param source: * @param target: * @return: return the index */ public int strStr(String source, String target) { // Write your code here return source.indexOf(target); } }

更多精彩
public class Solution { /** * @param source: * @param target: * @return: return the index */ public int strStr(String source, String target) { // Write your code here return source.indexOf(target); } }