Search:

Type: Posts; User: pbrockway2

Search: Search took 0.09 seconds.

  1. Replies
    5
    Views
    1,543

    Re: Why does this work?

    You're welcome, I'm glad you've got it sorted out.
  2. Replies
    5
    Views
    1,543

    Re: Why does this work?

    Think about that outer loop.

    First i is 1. You are right: j is made to go from 1 to 1 (ie from 1 to i). So one asterisk is printed. And then the newline. That completes one pass through the...
  3. Replies
    5
    Views
    1,543

    Re: Why does this work?

    Are you happy with the difference between print() and println()?

    By my count that code should print 20 characters: 15 asterisks and 5 newlines. Walk through the code and make sure you can account...
Results 1 to 3 of 3