Jump to content

learning java fundamentals

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
3 replies to this topic

#1
muhammad yar

muhammad yar

    Newbie

  • Members
  • Pip
  • 1 posts
hello, i am going to learn java programming. i feel trouble to learn nested for loop. can you help me?

#2
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
What about a nested for loop is an issue?
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#3
Sinipull

Sinipull

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 386 posts
Beginning Java - Unit 4 Looping - Nested For Loops

Read this first

#4
tate

tate

    Learning Programmer

  • Members
  • PipPipPip
  • 90 posts
A nested for loop isn't really any different than a normal for loop. For example:
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