CS 1705 Library

cs1705
Class Version

java.lang.Object
  extended by cs1705.Version

public class Version
extends Object

This class allows access to the package version information. The version identification can be retrieved using the version() method. From within BlueJ, you can type the following line into the code pad to get the version information:

  cs1705.Version.printVersion();
  

Alternatively, you can run this class as a main program to print out the version information:

  C:\> java -jar C:/BlueJ/lib/userlib/cs1705.jar
  

Either approach will generate this version information:

  cs1705.Version: package cs1705, v2.13 2009-03-31
  

Version:
2007.11.14
Author:
Stephen Edwards

Constructor Summary
Version()
          Create a new Version object.
 
Method Summary
static void main(String[] args)
          This main method simply prints out the version information on System.out.
static void printVersion()
          Prints out the version information on System.out.
static String version()
          Retrieve the current version information for this class (and this class jar/library) as a string.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Version

public Version()
Create a new Version object.

Method Detail

version

public static String version()
Retrieve the current version information for this class (and this class jar/library) as a string.

Returns:
the version information as a string

printVersion

public static void printVersion()
Prints out the version information on System.out.


main

public static void main(String[] args)
This main method simply prints out the version information on System.out.

Parameters:
args - The command line arguments, if any, are completely ignored

Last updated: Wed, Apr 1, 2009 • 12:29 AM EDT

Copyright © 2009 Virginia Tech.