KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > test > editor > suites > focus > data > testfiles > FocusTestPerformer > Test2


1 package org.netbeans.test.editor.suites.focus.data.testfiles.FocusTestPerformer;
2
3 import java.util.Arrays JavaDoc;
4
5 /*
6  * SysProps.java
7  * a1
8  * Created on February 3, 2003, 2:26 PM
9  */

10
11 /**
12  * a2
13  * @author eh103527
14  */

15 public class Test2 {
16     
17     /** Creates a new instance of SysProps */
18     public Test2() { //a3
19
}
20     
21     /**
22      * a4
23      * @param args the command line arguments
24      */

25     public static void main(String JavaDoc[] args) { //a5
26
Object JavaDoc keys[]=System.getProperties().keySet().toArray(); //a6
27
Arrays.sort(keys); //a7
28
for (int i=0;i < keys.length;i++) { //a8
29
System.out.println(keys[i]+"="+System.getProperty((String JavaDoc)keys[i])); //a9
30
}
31     }
32     
33 }
34
Popular Tags