// some testing stuff for TYA

import java.util.*;

public class SystemProperties 
{
   public static void main (String[] args) 
   {
        System.out.println("This line should be a (c) line ^^^   (else TYA is not loaded.)");
        System.out.println(System.getProperty ("java.compiler"));
        System.out.println(System.getProperty ("os.name"));
	//-----------------------------------------------------------
/*
 // ADD FOR TESTING AFTER THE FIRST TRY
         System.out.println("Hello World .."+new Date().toLocaleString());
        try
        { 
	 int a=0;
         System.out.println(0/a);
        }
        catch  (ArithmeticException ex) 
	{ 
	 System.out.println(ex.toString()+" (Div 0!!!!)");
	}
 	//----------------------------------------------------------

	Properties pp =System.getProperties();
	dumpProp(pp);			
  	Runtime rt=Runtime.getRuntime();
        System.out.println("total Memory="+rt.totalMemory());
*/
   }

   static public void dumpProp(Properties pp)
	{
	   for(Enumeration e = pp.propertyNames() ; e.hasMoreElements(); )
	   {
	    String str = (String)e.nextElement();
	    System.out.println(str+"\t=\t"+pp.getProperty (str));
	   }
	}

}

