Search:

Type: Posts; User: pbrockway2

Search: Search took 0.08 seconds.

  1. Replies
    5
    Views
    3,423

    Re: Pascal's Triangle Program

    You're welcome - I'm glad you've got it figured out.

    In some ways having instance variables can be a menace: as you've found they retain a "memory" from call to call. It's probably best to...
  2. Replies
    5
    Views
    3,423

    Re: Pascal's Triangle Program

    Did you try the three lines I added at the start of main()?

    The output I get is:



    0 --> 1
    1 --> 1
    2 --> 2
    3 --> 12
  3. Replies
    5
    Views
    3,423

    Re: Pascal's Triangle Program

    What problems? (Describe both the actual and intended behaviour of your program).

    -----

    It's a good idea to keep to Java coding conventions: start package names, methods and variables with a...
Results 1 to 3 of 3