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.
次のことを行うための for ループを作成しようとしています。道路クラスには、基本的にすべての新しいオブジェクトを一緒にリンクするコンストラクターがあります。これを行うための for ループを作成して、50 などのより多くの道路を作成できるようにしたいと考えています。
Road r3 = new Road(); Road r2 = new Road(r3); Road r1 = new Road(r2);