Search:

Type: Posts; User: helloworld922

Search: Search took 0.20 seconds.

  1. Replies
    12
    Views
    2,498

    Re: Recursion

    In general, you want your methods to have as few side-effects as possible. These include asking users for keyboard input and giving user screen output. Your methods should do something and return...
  2. Replies
    12
    Views
    2,498

    Re: Recursion

    Ok, so another thing about recursion is a simpler problem shouldn't have any knowledge of the more complicated problem :P

    Your problem should fit into this general template:

    public String...
  3. Replies
    12
    Views
    2,498

    Re: Recursion

    I don't think you quite understand how recursion works.

    Here's a similar problem: factorials.

    Every recursive function has 3 basic parts:

    1. Base case(s). These are cases where the answer to...
  4. Replies
    12
    Views
    2,498

    Re: Recursion

    Please don't post multiple threads asking the same question. I've merged these two threads.

    Also, please use code tags. See my signature if you're unsure how to do this.

    You're printDigit codes...
Results 1 to 4 of 4