Originally posted by Olivier Legat:
Your program seems all right to me. What kind of errors are you getting? You could also try to use a while loop. Like this for example:
But this will only work if all the elements of the array contain something
Originally posted by Nicholas Jordan:
String result = ""; sets result and Strings cannot be later set with result = result + separator + s[i]; as Kalona Ark shows.