public class StringHelper { public static String multiply(String s) { String result = ""; for (int i = 0; i < 5; i++) { result = result + s; System.out.print(s); } return result; } public static String multiply(String s, int count) { String result = ""; for (int j = 0; j < count; j++) { result = result + s; System.out.print(s); } return result; } }