How use in Java Date and Calendar class