You are welcome.
Glad you got it work.
Type: Posts; User: andreas90
You are welcome.
Glad you got it work.
I think the problem is in your the parameters you pass when you call the repeat(int i, char c) method. To be more specific:
int x = str.charAt(0);
In the abode code x has the value of the char...
Can you post the repeat(x, y) method?
if(str == "")
You shouldn't use the == operator to compare Strings. You should use the String's equals() method.
if(str.equals(""))