Created
February 15, 2016 12:19
-
-
Save alexejVasko/f940d4c05bd2bd9102a1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Date; | |
public class Zakreplenie { | |
public static void main(String[] args) { | |
long curTime = System.currentTimeMillis(); | |
Date curDate = new Date(curTime); | |
System.out.println(curTime); | |
System.out.println(curDate); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Задание требует применения только изученного материала, никаких типов Date. И формат вывода вам был заданный.