Не выполняется последнее условие...
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++) {
result = result + s;
}
//напишите тут ваш код
return result;
}
public static String multiply(String s, int count) {
String result = "";
while (count!=0) {
result = result + s;
count--;
}
//напишите тут ваш код
return result;
}
public static void main(String[] args) {
}
}