yyyy-MM-dd hh:mm:ss 12小時
SimpleDateFormat sdf = new SimpleDateFormat(“yyyy-MM-dd hh:mm:ss”); //小寫是12小時
yyy-MM-dd HH:MM:ss 24小時
SimpleDateFormat sdf = new SimpleDateFormat(“yyyy-MM-dd HH:mm:ss”);//大寫是24小時的
yyyy-MM-dd hh:mm:ss 12小時
SimpleDateFormat sdf = new SimpleDateFormat(“yyyy-MM-dd hh:mm:ss”); //小寫是12小時
yyy-MM-dd HH:MM:ss 24小時
SimpleDateFormat sdf = new SimpleDateFormat(“yyyy-MM-dd HH:mm:ss”);//大寫是24小時的
不摸魚了,直接上代碼! 也參考了網上很多資料,請理解! <build> <plugins> <plugin> <artifactId>maven-compiler-plugin</arti
下面請看一段代碼,父類(基類)SuperClass,子類(派生類)SubClass class SuperClass { private int n; SuperClass(int n) {