Java 在java.util包中提供了Date類,這個類封裝了當前的日期和時間。 ... str = String.format("Current Date/Time : %tc", date ); System.out.printf(str); } }.
確定! 回上一頁