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 + " ");
}
}


}
}

posted on 2016-10-15 22:58  _故乡的原风景  阅读(154)  评论(0编辑  收藏  举报