Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class hello {
- public static void main(String[] args) {
- int days;
- int month;
- int year;
- days=24;
- month=10;
- year=1994;
- System.out.println("Date of Birth: "+days+ "/" +month+ "/" +year);
- Date d = new Date();
- int t= d.getDate();
- int x = d.getMonth()+1;
- int f = d.getYear()+1900;
- System.out.println("Current Date: " +t+ "/" +x+ "/" +f);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement