package demo03_99ChenFaBiao; //打印九九乘法表 public class Test { public static void main(String[] args) { for (int i = 1; i <=9 ; i++) { printOneline(i); } } /** * * @param number 行数 */ public static void printOneline(int number){ for (int i=1;i<=number;i++) { System.out.printf("%d*%d=%d",i,number,i*number); System.out.print(" "); } System.out.println(" "); } }