FileDocCategorySizeDatePackage
Property.javaAPI DocExample3179Mon Apr 06 18:10:26 BST 1998None

Property

public class Property extends Object
The first Thinking in Java example program. Lists system information on current machine.
author
Bruce Eckel
author
http://www.BruceEckel.com
version
1.0

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)
Sole entry point to class & application

param
args array of string arguments
return
No return value
exception
exceptions No exceptions thrown

    System.out.println(new Date());
    Properties p = System.getProperties();
    p.list(System.out);
    System.out.println("--- Memory Usage:");
    Runtime rt = Runtime.getRuntime();
    System.out.println("Total Memory = "
                       + rt.totalMemory()
                       + " Free Memory = "
                       + rt.freeMemory());