Day 3 Stept 4

This commit is contained in:
2026-09-10 15:16:57 +09:00
parent 0218018afa
commit 4cbb8d091d

View File

@@ -64,6 +64,7 @@ public class StringCheck {
inputString (str); // Day 3 stept 1
isEmptyInput(str);// Day 3 stept 2
isTooLongInput(str);//Day 3 stept2
isTooLongInput("");//Day 3 stept4
@@ -138,4 +139,10 @@ public class StringCheck {
}
//Day 3 stpt 3 checking ok
//Day 3 Stept 4 overrode
public static boolean isTooLongInput(String str, int maxLength) {
return (str.length() > maxLength);
}
}