class FangFa19 {
public static void main(String[] args) {
huaJuXing(height,width);
}
public static void huaJuXing(int height,int width) {
for (int n = 0;n < height ; n++) {
for (int m = 0;m < width ;m++ ) {
System.out.print('$');
}
System.out.println();
}
System.out.println("------------------------");
}
}
键盘录入的代码是放到public 开头的主函数中,还是在方法中 |
|