Day 3 Stept 4
This commit is contained in:
@@ -64,6 +64,7 @@ public class StringCheck {
|
|||||||
inputString (str); // Day 3 stept 1
|
inputString (str); // Day 3 stept 1
|
||||||
isEmptyInput(str);// Day 3 stept 2
|
isEmptyInput(str);// Day 3 stept 2
|
||||||
isTooLongInput(str);//Day 3 stept2
|
isTooLongInput(str);//Day 3 stept2
|
||||||
|
isTooLongInput("");//Day 3 stept4
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -138,4 +139,10 @@ public class StringCheck {
|
|||||||
|
|
||||||
}
|
}
|
||||||
//Day 3 stpt 3 checking ok
|
//Day 3 stpt 3 checking ok
|
||||||
|
|
||||||
|
|
||||||
|
//Day 3 Stept 4 overrode
|
||||||
|
public static boolean isTooLongInput(String str, int maxLength) {
|
||||||
|
return (str.length() > maxLength);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user