I don't understand what I am doing wrong here. I get the right output (or so I think) when I run it. But when I go to verify it I fail the last 2 requirements. Please help!
package com.codegym.task.task06.task0611;
/*
StringHelper class
*/
public class StringHelper {
public static String multiply(String s) {
String result = "Amigo";
for (int i = 1; i < 5; i++){
result += s;
}
return result;
}
public static String multiply(String s, int count) {
String result = "";
for (count = 0; count <= 10; count++){
result += s;
}
return result;
}
public static void main(String[] args) {
System.out.println(StringHelper.multiply("Amigo"));
System.out.println(StringHelper.multiply("Amigo"));
}
}