After asking myself sometime, i showed me the solution and it was the same. Can someone help me? Thanks.
package en.codegym.task.pro.task04.task0414;
import java.util.Scanner;
/*
There's never too much of a good thing
*/
public class Solution {
public static void main(String[] args) {
//write your code here
Scanner sc = new Scanner(System.in);
String str = sc.nextLine();
int num = sc.nextInt();
do {
System.out.println(str);
num--;
} while (0<num&&num<5);
}
}