段階1です
This commit is contained in:
@@ -11,27 +11,44 @@ public class StringCheck {
|
|||||||
|
|
||||||
//System.out.println(message[2]);
|
//System.out.println(message[2]);
|
||||||
|
|
||||||
Scanner scanner = new Scanner(System.in);
|
|
||||||
|
|
||||||
System.out.println(message[0]);
|
for (int i = 0; i < message.length; i++) {
|
||||||
String str = scanner.nextLine().strip();
|
System.out.println(message[i]);
|
||||||
|
}
|
||||||
|
|
||||||
int strlen = str.length();
|
while(true) {
|
||||||
|
Scanner scanner = new Scanner(System.in);
|
||||||
|
System.out.println(message[0]);
|
||||||
|
String str = scanner.nextLine().strip();
|
||||||
|
|
||||||
boolean isEmpty = strlen == 0;
|
System.out.println("");
|
||||||
// System.out.println(message[1]);
|
System.out.println(message[3]);
|
||||||
System.out.println(isEmpty);
|
System.out.println(str);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
boolean isOver = ((140 - strlen) <= 0);
|
|
||||||
//System.out.println(message[2]);
|
|
||||||
System.out.println(isOver);
|
|
||||||
|
// int strlen = str.length();
|
||||||
|
//
|
||||||
|
// boolean isEmpty = strlen == 0;
|
||||||
|
// System.out.println(message[1]);
|
||||||
|
// System.out.println(isEmpty);
|
||||||
|
//
|
||||||
|
//
|
||||||
|
// boolean isOver = ((140 - strlen) <= 0);
|
||||||
|
// //System.out.println(message[2]);
|
||||||
|
// System.out.println(isOver);
|
||||||
|
//
|
||||||
|
// System.out.println("残り入力可能文字数" + (140-strlen));
|
||||||
//
|
//
|
||||||
System.out.println("残り入力可能文字数" + (140-strlen));
|
|
||||||
|
|
||||||
System.out.println("");
|
|
||||||
System.out.println(message[3]);
|
|
||||||
System.out.println(str);
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// boolean isMessage = (140 >= strlen);
|
// boolean isMessage = (140 >= strlen);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user