How can I realize that when writing, for example, 5, 5 pieces of for?
Closed due to the fact that the essence of the question is not clear to the participants iksuy , YuriySPb ♦ , zRrr , aleksandr barakin , Alexey Shimansky 16 May '16 at 12:52 .
Try to write more detailed questions. To get an answer, explain what exactly you see the problem, how to reproduce it, what you want to get as a result, etc. Give an example that clearly demonstrates the problem. If the question can be reformulated according to the rules set out in the certificate , edit it .
|
1 answer
public void someFors(int howMany) { for(int i = 0; i < howMany; i++) { for(int u = 0; u < howMany; u++) { System.out.println("WTF?!"); } } } - 6Plus for telepathy. - Vladimir Gamalyan
- oneMinus - for encouraging newbies to ask idiotic questions - Alexey Shimansky
- @ Alexey Shimansky, well, the question is not perfect, but, judging by the tick, the vehicle can, nevertheless, be understood, even though the wording is not very good. Of course, I would have formulated otherwise. Something like "How do I execute n identical cycles?". So I will assume that your minus is not quite fair in view of the difficulty of formulating the "right" question for newbies. - YurySPb ♦
|