Подскажите пожалуйста что я сделал не так
мой код
package com.javarush.task.task06.task0611;
/*
Класс StringHelper
*/
public class StringHelper {
public static String multiply(String s) {
String result = "";
//напишите тут ваш код
for (int i=0;i<5;i++)
System.out.print(s);
return result;
}
public static String multiply(String s, int count) {
String result = " -> ";
//напишите тут ваш код
System.out.print(s+result);
return result;
}
public static void main(String[] args) {
StringHelper stringHelper= new StringHelper();
multiply("Amigo",1);
multiply("Amigo");
}
}
package com.javarush.task.task06.task0611;
/*
Класс StringHelper
*/
public class StringHelper {
public static String multiply(String s) {
String result = "";
//напишите тут ваш код
for (int i=0;i<5;i++)
System.out.print(s);
return result;
}
public static String multiply(String s, int count) {
String result = " -> ";
for (int x=1;x<count;x++)
//напишите тут ваш код
System.out.print(s+result);
return result;
}
public static void main(String[] args) {
StringHelper stringHelper= new StringHelper();
multiply("Amigo",1);
multiply("Amigo");
}
}