The condition for String and count is not verifying and but when I run it, it is runs correctly i.e the string s is printed count times.
package com.codegym.task.task06.task0611;
/*
StringHelper class
*/
public class StringHelper {
public static String multiply(String s) {
String result = s;
//write your code here
return result+result+result+result+result;
}
public static String multiply(String s, int count) {
String result = " ";
//write your code here
for (int i = 0; i<count; i++){
result += s;
}
return result;
}
public static void main(String[] args) {
}
}