Привет! Помогите разобраться что не так и как исправить? Спасибо!
package com.javarush.task.task06.task0611;
/*
Класс StringHelper
*/
public class StringHelper {
public static String multiply(String s) {
String result = "Amigo";
//напишите тут ваш код
for (int countFive = 1; countFive < 5; countFive++) {
result += s;
}
return result;
}
public static String multiply(String s, int count) {
String result = "";
//напишите тут ваш код
for (int count2 = 0; count2 < count; count2++) {
result += s;
}
return result;
}
public static void main(String[] args) {
System.out.println(multiply("Amigo"));
System.out.println(multiply("Amigo", 10));
}
}