import java.io.*;
class PrintStar
{
public static void main(String args[]) throws IOException
{
int x,y;
BufferedReader br = new
BufferedReader(new InputStreamReader(System.in));
System.out.print("请输入宽: ");
x= Integer.parseInt(br.readLine());
System.out.print("请输入高: ");
y= Integer.parseInt(br.readLine());
{
for(int i = 0; i < x; i++)
{
for(int j = 0; j < y; j++) {
System.out.print("*"); //印星星
}
System.out.println(); //换行
}
}
}
}
我来补充一下