what cause erroe
package com.codegym.task.task06.task0611;
/*
StringHelper class
*/
public class StringHelper {
public static String multiply(String s) {
String result = s;
int n=0;
while(n<5){
return result;
}
return result;
}
public static String multiply(String s, int count) {
String result = s;
count=0;
while(count<5){
return result;
} return result;
}
public static void main(String[] args) {
StringHelper ob = new StringHelper();
System.out.println("Amigo -> "+ob.multiply("Amigo"));
System.out.println("Amigo -> "+ob.multiply("Amigo",5));
}
}