hello, i am going to learn java programming. i feel trouble to learn nested for loop. can you help me?
learning java fundamentals
Started by muhammad yar, Jan 07 2010 11:37 AM
3 replies to this topic
#1
Posted 07 January 2010 - 11:37 AM
|
|
|
#2
Posted 07 January 2010 - 01:26 PM
What about a nested for loop is an issue?
#3
Posted 07 January 2010 - 02:08 PM
#4
Posted 07 January 2010 - 04:19 PM
A nested for loop isn't really any different than a normal for loop. For example:
Edit: haha, i posted before i looked at what Sinipull's link went to due to my 14kb/s connection. very similar
for(int i = 0; i < 10; i++){
for(int k = 0; k < 10; k++){
System.out.println("("+i+","+k+")");
}
}
Edit: haha, i posted before i looked at what Sinipull's link went to due to my 14kb/s connection. very similar
twas brillig


Sign In
Create Account

Back to top









