Advertisement
Guest User

Untitled

a guest
Aug 19th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. import java.util.Date;
  2. import java.util.Calendar;
  3. import java.util.GregorianCalendar;
  4. import java.text.SimpleDateFormat;
  5.  
  6. public class Example{
  7. public static void main(String args[]){
  8. SimpleDateFormat sdf = new SimpleDateFormat("dd/M/yyyy");
  9. String date = sdf.format(new Date());
  10. System.out.println(date);
  11.  
  12. System.out.println("JVM VERSION: " + System.getProperty("java.vm.version"));
  13. }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement