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...
Type: Posts; User: helloworld922
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...
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...
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...
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...