chapter3运算符.pptVIP

  • 4
  • 0
  • 约1.07万字
  • 约 61页
  • 2017-06-02 发布于湖北
  • 举报
补充: Java程序运行时间计算 Java程序运行时间的计算,以ms为单位。 import java.util.*; long start= Calendar.getInstance().getTime(); //long start= new Date().getTime(); …… …… long end= Calendar.getInstance(). getTime(); //long end= new Date(). getTime(); Sytem.out.println(s2-s1); 注:public long getTime():Returns the number of milliseconds since January 1, 1970, 00:00:00 GMT(历元即格林威治标准时间 1970 年 1 月 1 日的 00:00:00.000) represented by this Date object. 思考以下程序运行结果 public class ContinueST { public static void main(String args[]) { int j=0; do { j++; if (j==5) continue; System.out.pr

文档评论(0)

1亿VIP精品文档

相关文档