标签:
/**
* 吉他之旅(第一天)
*
* @author hexin
*
*/
public class FirstDay implements JiTa {
private static Random random = new Random();
/**
* 练习右手对6跟琴弦的熟悉程度
*
* 5个为一组 然后换行 一共练习1000次 200组
*
* @param args
*/
public static void main(String[] args) {
for (int i = 1; i < 1001; i++) {
if (i % 5 == 1) {
System.out.print("第" + (i / 5 + 1) + "组: ");
}
if (i % 5 == 0) {
System.out.println(random.nextInt(6) + 1);
} else {
System.out.print(random.nextInt(6) + 1 + " ");
}
}
}
}

标签:
原文地址:http://my.oschina.net/hexin1/blog/382646