Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
コンストラクターで double を取り、倍精度を使用する Point に相当するクラスはありますか?
はい、Point2Dクラスを見てください。double 値で構築するには、Double コンストラクターを使用します。
Point2D myPoint = new Point2D.Double(1.0, 1.0);
標準の Point クラスがこのクラスを拡張していることに注意してください。