java.lang パッケージにはどういうクラスがあるのか 左辺がObjectで右辺は何でも入れられる (Object型の変数には、どんな「オブジェクト」でも代入できる) → 全部 Object を継承しているから。 Object o1 = "hello"; Object o2 = 123; // Integerに変換されて入る Object o3 = new ...
Community driven content discussing all aspects of software development from DevOps to design patterns. The easiest way to garner user input in a Java program is to use the System’s Console class.