Hi Folks i tried a simple example of using system environment method. Let me share it with you .
import java.util.Iterator;
import java.util.Map;
import java.util.Set;
/**
*
* @author Raghu
*/
public class ReadingSystemInstalled {
public static void main(String a[]) {
Map m = System.getenv();
Set ref = m.keySet();
Iterator it = ref.iterator();
System.out.println("---------------");
while (it.hasNext()) {
// System.out.println((String) it.next());
String key=(String) it.next();
System.out.println(key+" : "+m.get(key));
}
}
}
9/6/10
Subscribe to:
Post Comments (Atom)
Popular Posts
-
Hi folks, I got a chance to work with JSF, it was an interesting requirement. Its about a custom component which would be of more use to ...
-
Hi Folks, I would like to share my another POC task in JSF with you all. "Primefaces Dropdown with Pagination & Filter "...
-
We shall create temp table in mysql using the sql script CREATE TEMPORARY TABLE testraghu(name VARCHAR(50) , phone VARCHAR(50)) Let us se...
-
Hi all, i would like to share a simple example of storing haspmap in mysql db. In order to store object into your db, the field type must ...
No comments:
Post a Comment