Чё не так?
package com.javarush.task.task06.task0611;
/*
Класс StringHelper
*/
public class StringHelper {
public static String multiply(String s) {
String result = "g";
for (int i = 5; i>0; i--) {
System.out.print(result);
}
return result;
}
public static String multiply(String s, int count) {
String result = "g";
while (count>0) {
System.out.print(result);
}
return result;
}
public static void main(String[] args) {
}
}