// Collection of code snippets by Arne Vajhøj 
// (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
import junit.framework.TestCase;

import org.apache.log4j.Logger;

public class GetVersion {
    public static void main(String[] args) {
        Package p1 = String.class.getPackage();
        System.out.println(p1.getName());
        System.out.println(p1.getImplementationTitle());
        System.out.println(p1.getImplementationVendor());
        System.out.println(p1.getImplementationVersion());
        Package p2 = Logger.class.getPackage();
        System.out.println(p2.getName());
        System.out.println(p2.getImplementationTitle());
        System.out.println(p2.getImplementationVendor());
        System.out.println(p2.getImplementationVersion());
        Package p3 = TestCase.class.getPackage();
        System.out.println(p3.getName());
        System.out.println(p3.getImplementationTitle());
        System.out.println(p3.getImplementationVendor());
        System.out.println(p3.getImplementationVersion());
    }
}
