public class Version extends Object
version()
method. From within BlueJ, you can type the following line into the
code pad to get the version information:
student.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/student.jar
Either approach will generate this version information:
student.Version: package student, v4.14 $Date: 2015/08/23 19:19:54 $
Constructor and Description |
---|
Version()
Create a new Version object.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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