摘要:
public class FormatDateUtil { public FormatDateUtil() { } // 设置日期格式 static public String formatDateTime() { // 获取当前时间 Date date = new Date(); // DateFormat... 阅读全文
摘要:
package DEMO01; import java.text.SimpleDateFormat; import java.util.Date; public class Demo5 { public static void main(String[] args) { while (true){ Date date = new Date(); SimpleDateFormat sdf = new 阅读全文
摘要:
package day01; public class VIPThread implements Runnable{ @Override public void run() { for(int i = 0;i<10;i++) { String name = Thread.currentThread().getName(); ... 阅读全文
摘要:
package Zuoye; public class User implements Runnable{ private int time; private int num = 10; public User (int time) { this.time= time; } @Override public void run()... 阅读全文