Scanner class in Java is found in the java.util package. Java provides various ways to read input from the keyboard, the java.util.Scanner class is one of them. The Java Scanner class breaks the input ...
java.lang パッケージにはどういうクラスがあるのか 左辺がObjectで右辺は何でも入れられる (Object型の変数には、どんな「オブジェクト」でも代入できる) → 全部 Object を継承しているから。 Object o1 = "hello"; Object o2 = 123; // Integerに変換されて入る Object o3 = new ...