zoukankan      html  css  js  c++  java
  • java 中 System

    package cn.zhou.com;
    /*
     * System 类
     * 
     * 不能实列化
     * 
     * long t=System.currentTimeMillis();//用于计算程序的执行时间!
     * 
     * long end=System.currentTimeMillis();//结束!
     * 
     * exit();退出虚拟机!
     * 
     * 
     */
    public class SystemDemo {
        public static void main(String[] args) {
            currentTimeMllllsDemo();
        }
        public static void currentTimeMllllsDemo(){
            long t=System.currentTimeMillis();//用于计算程序的执行时间!
            for (int i = 0; i < 3000; i++) {
                System.out.println(i);
            }
            long end=System.currentTimeMillis();
            System.out.println((end-t)+"毫秒");
        }
    }
  • 相关阅读:
    C
    B
    A
    F
    C
    H
    Fang Fang hdu 5455
    Fire Net hdu1045(DFS)
    Sudoku HDU 5547(DFS)
    UVA 10200 Prime Time (打表)
  • 原文地址:https://www.cnblogs.com/ZXF6/p/10571305.html
Copyright © 2011-2022 走看看