X162: allStar

Given a string, compute recursively a new string where all the adjacent chars are now separated by a "*". So given "hello", return "h*e*l*l*o".

Your Answer:

x
 
1
public String allStar(String str)
2
{
3
    
4
}
5
Reset

Practice a different Java exercise

Feedback

Your feedback will appear here when you check your answer.