Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Tanglong9344 committed Dec 4, 2017
1 parent e2e36f8 commit 82e37e1
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 112 deletions.
10 changes: 10 additions & 0 deletions src/java_common/Common_Bool.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package java_common;

/**
* true and false
* @author ÌÆÁú
*/
public class Common_Bool {
public final static boolean TRUE = true;
public final static boolean FALSE = false;
}
13 changes: 7 additions & 6 deletions src/java_common/TimeNow.java
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
/**
* 获取系统当前时间
* 以yyyy-MM-dd HH:mm:ss格式返回
*/

package java_common;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
* 获取系统当前时间
* 以yyyy-MM-dd HH:mm:ss格式返回
* @author 唐龙
*/
public class TimeNow {
public static String getTimeNow(){
public static final String TIME_NOW = getTimeNow();
private static String getTimeNow(){
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
return sdf.format(new Date());
}
Expand Down
104 changes: 0 additions & 104 deletions src/java_input_output/TransientTest.java

This file was deleted.

Binary file removed src/java_input_output/transientClass.txt
Binary file not shown.
4 changes: 2 additions & 2 deletions src/java_thread/PrintLog.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
public class PrintLog {
//´òÓ¡µ±Ç°Ê±¼äϵÄÐÅÏ¢
public static void log(String msg) {
System.out.printf("%s %s %s%n", TimeNow.getTimeNow(), Thread.currentThread().getName(), msg);
System.out.printf("%s %s %s%n", TimeNow.TIME_NOW, Thread.currentThread().getName(), msg);
}
}
}

0 comments on commit 82e37e1

Please sign in to comment.