Natalie Chen

Greenhorn
+ Follow
since Feb 03, 2008
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Natalie Chen

Hi guys!

Say I have the following method:


I want to make it so that when given "abc" it returns in an ArrayList:
"abc"
"ab"
"a"
""

Right now, I'm trying to do this recursion alone. I've come to sort of have the idea that it's repeating the second line and throwing everything off. Is there any way to fix this to make it work as intended, or do I have a faulty plan and need to rewrite the whole thing?

Bwuh. So much frustration over simple code.
16 years ago