I tried the following and it fails to output anything. I would ideally like to have the String text repeated n number of time by int multiplier. What am I doing wrong?
String text and int multiplier are passed as arguments from another method.
public static String repeatText(String text, int multiplier)
{
String value = "";
StringBuilder repeat = new StringBuilder(text.length() * multiplier);
repeat(repeat, text, multiplier);
value.equals(repeat);
System.out.println("Text Repeated:");
System.out.println("-----------");
System.out.println(repeat);
System.out.println("--------------");
return value;
}