please help...how to make a word looping n time
package en.codegym.task.jdk13.task04.task0432;
import java.io.BufferedReader;
import java.io.InputStreamReader;
//import java.io.Exception;
/*
You can't have too much of a good thing
*/
public class Solution {
public static void main(String[] args) throws Exception {
//write your code here
BufferedReader a=new BufferedReader(new InputStreamReader(System.in));
String Name =a.readLine();
int n=Integer.parseInt(Name) ;
try { while (n>0) {
System.out.println(Name);
n--;} }
catch(Exception e)
{}
}
}