package com.yhqtv.demo01.FunctionalInterface; /*
* @author XMKJ yhqtv.com Email:yhqtv@qq.com
* @create 2020-05-23-14:33
*
*/
public class Test01 {
public static void main(String[] args) { long start = System.currentTimeMillis();
for (int i = 1; i < 10000; i++) {
System.out.println(i);
}
long end = System.currentTimeMillis(); System.out.println("打印1-9999需要"+(end-start)+"毫秒"); }
}