段階2 完了しました。

This commit is contained in:
s-ohasi
2026-09-09 14:22:47 +09:00
parent d502819375
commit 3e062cacc2

View File

@@ -1,3 +1,4 @@
import java.util.Scanner;
public class StringCheck {
public static void main(String[] args) {
@@ -7,5 +8,9 @@ name[1]="何も入力されていません";
name[2]="文章が長すぎます";
name[3]="↓↓↓↓ 投稿されました ↓↓↓↓↓↓";
Scanner sc = new Scanner(System.in);
String str = sc.nextLine().strip();
System.out.println(str);
}
}