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.
多くのコードを記述せずに、Java で特定の数のオブジェクトにアクセスしたい。たとえば、次のようになります。
int X; for(X=0;X<5;X++){ jLabelX = /*do something*/ }
次のようになります。
X=0それからjLabel0アクセスはいつですか、X=1それjLabel1から...
X=0
jLabel0
X=1
jLabel1
これを行う方法はありますか?または、すべてのケースを指定する必要があります