This commit is contained in:
2026-09-09 10:58:31 +09:00
parent 4cce8027d7
commit e1f981aa0f

17
Day1/src/level2.java Normal file
View File

@@ -0,0 +1,17 @@
import java.util.Scanner;
public class level2 {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
String str = scan.nextLine();
// 標準入力から1行分の文字列を読み込む
String trimmedstr = str.trim();
// 前後の空白を削除
// inputString()かも
System.out.println(str);
}
}