更新 test.java

This commit is contained in:
2023-09-05 15:52:25 +08:00
parent 86ebccaff6
commit 2e608b6f23

View File

@@ -11,7 +11,7 @@ public class test {
String s2 = "pwwkew"; String s2 = "pwwkew";
String s3 = "ckilbkd"; String s3 = "ckilbkd";
String s4 = "dvdf"; String s4 = "dvdf";
System.out.println(lengthOfLongestSubstring(s)); System.out.println(lengthOfLongestSubstring(s3));
} }
public static int lengthOfLongestSubstring(String s) { public static int lengthOfLongestSubstring(String s) {