Guest User

Untitled

a guest
Dec 18th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. public class C9E3 {
  2.  
  3. public static void main(String[] args) {
  4.  
  5. java.util.Date date = new java.util.Date();
  6.  
  7. System.out.println("\nThe dates and times for elapsedtimes 10000, " +
  8. "100000, 1000000, 10000000,\n100000000, 1000000000, 10000000000," +
  9. " and 100000000000, respectively");
  10. for (long i = 10000; i <= 1e11; i *= 10) {
  11. date.setTime(i);
  12. System.out.println(date.toString());
  13. }
  14. }
  15. }
Add Comment
Please, Sign In to add comment