java小程序 示例
乘法表:
package com.test;
import org.junit.Test;
public class TestSwitch {
@Test
public void test() {
for (int i = 1; i < 10; i++) {
System.out.println("");
for (int j = 1; j <= i; j++) {
System.out.print(j + "*" + i + "=" + i * j + " ");
}
}
}
}
邮箱:wangh_2@sina.com