Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Feb 26th, 2012  |  syntax: None  |  size: 0.88 KB  |  views: 20  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. /**
  2.  * User: Grzegorz (vara) Warywoda
  3.  * Date: 2010-10-21
  4.  * Time: 20:19:33
  5.  */
  6. public class V4JVersion {
  7.         static {
  8.                 BasicConfigurator.configure();
  9.                 Logger.getRootLogger().setLevel(Level.INFO);
  10.         }
  11.  
  12.         /**
  13.          * Object for describing information about version v4j library.
  14.          */
  15.         public static final Version ver = new DefaultVersion("v4j");
  16.  
  17.         /**
  18.          * Get information about version v4j library.
  19.          *
  20.          * @return info about version
  21.          */
  22.         public static String getFullVersion(){
  23.                 return ver.getFullVersion();
  24.         }
  25.  
  26.         /**
  27.          * Print information about version v4j library
  28.          * to standard output stream.
  29.          *
  30.          */
  31.         public static void printFullVersion(){
  32.                 System.out.println(ver.getFullVersion());
  33.         }
  34.  
  35.         @Override
  36.         public String toString() {
  37.                 return ver.getFullVersion();
  38.         }
  39.  
  40.         /**
  41.          * Testing method
  42.          *
  43.          * @param args non-parameters
  44.          */
  45.         public static void main(String[] args) {
  46.                 V4JVersion.printFullVersion();
  47.         }
  48. }