段階2
This commit is contained in:
17
Day1/src/level2.java
Normal file
17
Day1/src/level2.java
Normal 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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user