显示格式化确当前时间

显示格式化的当前时间?import java.text.SimpleDateFormatpublic class Time {private Time() {}public s

显示格式化的当前时间

?

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);}}
?