besides i dont get the empty string.... does this means that we are expected to provide the string.
the problem with codegym is they give u the work/practical and then teach you/theory
package com.codegym.task.task06.task0611;
/*
StringHelper class
*/
public class StringHelper{
public static String multiply(String s){
String result = "s";
//write your code here
for(int i = 0; i < 5; i++){
result = result+s;
}
return result;
}
public static String multiply(String s, int count){
String result = "s";
//write your code here
for(int i=0; i<count; i++){
result = result + s;
}
return result;
}
public static void main(String[] args){
StringHelper.multiply("step");
StringHelper.multiply("them", 3);
}
}