Check02D - epoch" milliseconds = input.nextLong m Date...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
import java.util.Date; import java.util.Scanner; i public class Check02D { public static void main(String[] args) { Scanner input = new Scanner(System.in); long milliseconds; l System.out.println("Enter the number of milliseconds since the
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: epoch:"); milliseconds = input.nextLong(); m Date current = new Date(); current.setTime(milliseconds); System.out.println("After that many milliseconds, the date is:\n"+ current.toString()); c } }...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online