Check02D - epoch:"); milliseconds = input.nextLong();...

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(; 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

This note was uploaded on 09/16/2011 for the course CSE CSE 1020 taught by Professor Burton,ma during the Fall '10 term at York University.

Ask a homework question - tutors are online