段階2
This commit is contained in:
@@ -8,10 +8,16 @@ public class level2 {
|
||||
// 標準入力から1行分の文字列を読み込む
|
||||
|
||||
String trimmedstr = str.trim();
|
||||
// 前後の空白を削除
|
||||
// 前後の空白を削除
|
||||
|
||||
// inputString()かも
|
||||
|
||||
System.out.println(str);
|
||||
System.out.println(trimmedstr);
|
||||
|
||||
// Scanner scanner = new scanner(System.in);
|
||||
// String input = scanner.nextLine();
|
||||
//
|
||||
// String trimmedInput = input.trim();
|
||||
// System.out.println(trimmedInput);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user