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(int i = 0; i < con.length; i++) { Vector max[i] = new Vector(i+1, i+2, i+3); }
Java初心者なのでよくわかりません。ご協力いただきありがとうございます。
これはうまくいくはずです
Vector[] max = new Vector[con.length]; for(int i = 0; i < con.length; i++) { max[i] = new Vector(i+1, i+2, i+3); }