Answer the question
In order to leave comments, you need to log in
java screen output?
Hello everyone
Plz tell me how to bypass variables in a loop?
int a1 = 5;
int a2 = 6;
int a3 = 7;
for (int i = 1; i <=3; i++)
System.out.println(a[i]);
in this case, an Uncompilable source code error is thrown. In general, it is understandable (although not very good, but this is a matter for further study)
Thank you
Answer the question
In order to leave comments, you need to log in
This problem has no solution.
If these were class variables, or class properties, then it would be possible through reflection.
Yes, there is a gap of the whole semester in sight. Open the chapter "arrays" and read
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question