Phase 1 Language Basics + Advanced _1-3-Java language API senior _03- common construction method _ the second part of Section 2 Date class _2_Date class members and methods

Common methods of construction methods and members

here to write a demo01 way


Alt + Enter will be prompted to create this method

creates a carriage return after this demo01 method

Date needs guide package import java.util package

print out the current system of events described, Date toString method of rewriting the

constructor parameter bands. To convert milliseconds to date
here pass a 0 millisecond

output to 1.8 points in January 1970 because of China belongs to the East eight districts plus the eight hours.


getTime method


Members of commonly used methods










 

Guess you like

Origin www.cnblogs.com/wangjunwei/p/11226945.html