X125: repeatSeparator

Given two strings, word and a separator sep, return a big string made of count occurrences of the word, separated by the separator string.

Your Answer:

x
 
1
public String repeatSeparator(String word, String sep, int count)
2
{
3
    
4
}
5

Feedback

Your feedback will appear here when you check your answer.