|
CS 1705 Library | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcs1705.Version
public class Version
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
| 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 |
|---|
public Version()
| Method Detail |
|---|
public static String version()
public static void printVersion()
System.out.
public static void main(String[] args)
System.out.
args - The command line arguments, if any, are completely ignored
|
Last updated: Wed, Apr 1, 2009 12:29 AM EDT | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||