显示格式化的当前时间
?
import java.text.SimpleDateFormat;public class Time {private Time() {}public static String getcurrentTimeString(){long t=System.currentTimeMillis();SimpleDateFormat simpledateformat=new SimpleDateFormat("yyyy 年 MM 月 dd 日 hh:mm:ss");return simpledateformat.format(t);}}?