We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e859fbc commit 07f0c67Copy full SHA for 07f0c67
source_code/StrStr.java
@@ -2,7 +2,7 @@
2
* @Author: Beinan
3
* @Date: 2015-01-08 18:04:08
4
* @Last Modified by: Beinan
5
-* @Last Modified time: 2015-01-08 18:27:53
+* @Last Modified time: 2015-01-08 19:36:38
6
*/
7
8
public class StrStr {
@@ -32,7 +32,10 @@ public static int strStr(String source, String target){
32
//test script
33
public static void main(String[] args) {
34
System.out.println(strStr("abcde", "cde"));
35
- System.out.println(strStr("abcde", "cdef"));
+ System.out.println(strStr("abcde", "cdef"));
36
+ System.out.println(strStr("abcde", ""));
37
+ System.out.println(strStr("", ""));
38
+
39
}
40
41
0 commit comments