review again
This commit is contained in:
@@ -72,7 +72,7 @@ public class StringCheck {
|
|||||||
System.out.println(messages[0]);
|
System.out.println(messages[0]);
|
||||||
|
|
||||||
//Day 3 from method
|
//Day 3 from method
|
||||||
str = inputString (scanner); // Day 3 stept 1
|
str = inputString (); // Day 3 stept 1
|
||||||
boolean isEmpty=isEmptyInput(str);// Day 3 stept 2
|
boolean isEmpty=isEmptyInput(str);// Day 3 stept 2
|
||||||
boolean isTooLong=isTooLongInput(str,140);//Day 3 stept2
|
boolean isTooLong=isTooLongInput(str,140);//Day 3 stept2
|
||||||
|
|
||||||
@@ -129,8 +129,9 @@ public class StringCheck {
|
|||||||
}
|
}
|
||||||
//Day 3 Stept 1
|
//Day 3 Stept 1
|
||||||
|
|
||||||
public static String inputString (Scanner scanner) {
|
public static String inputString () {
|
||||||
String Line = scanner.nextLine();
|
Scanner scann = new Scanner(System.in);
|
||||||
|
String Line = scann.nextLine();
|
||||||
return Line.strip();
|
return Line.strip();
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user