fork download
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import java.io.*;
  6.  
  7. /* Name of the class has to be "Main" only if the class is public. */
  8. class Ideone
  9. {
  10. public static void main (String[] args) throws java.lang.Exception
  11. {
  12. System.out.println( "Java vendor and version:" ) ;
  13. System.out.println( " " + System.getProperty("java.vendor") ) ;
  14. System.out.println( " " + Runtime.version() ) ;
  15. System.out.println( "" ) ;
  16.  
  17. String output =
  18. java.time.zone.ZoneRulesProvider
  19. .getVersions("UTC")
  20. .lastEntry()
  21. .getKey()
  22. ;
  23.  
  24. System.out.println( "tzdata data file version: " + output ) ;
  25. }
  26. }
Success #stdin #stdout 0.17s 61048KB
stdin
Standard input is empty
stdout
Java vendor and version:
    Oracle Corporation
    12.0.1+12

tzdata data file version: 2018g