Monday, 28 May 2012

Program in java to display system properties


import java.util.*;



class  GetSystemProperties{
  public static void main(String[] args) {
  Properties prop = System.getProperties();
  Enumeration keys = prop.keys();
  while (keys.hasMoreElements()) {
  String key = (String)keys.nextElement();
  String value = (String)prop.get(key);
  System.out.println(key + ": " + value);
 }
  }
}

1 comment:

  1. I have read your blog its very attractive and impressive. I like it your blog.

    Java Online Training Java EE Online Training Java EE Online Training Java 8 online training Core Java 8 online training

    Java Online Training from India Java Online Training from India Core Java Training Online Core Java Training Online Java Training InstitutesJava Training Institutes

    ReplyDelete