Pin It

How to print System Properties through a Java program ?

Program to print System Properties through a Java

public class SystemProperties {

   public static void main(String[] args) {

      System.getProperties().list(System.out);
      System.out.println();
      System.out.println("The User Name property : ");
      System.out.println(System.getProperty("user.name"));
      System.out.println("The Java Library path property : ");
      System.out.println(System.getProperty("java.library.path"));

    }

}




Output of the program :




Please Give Us Your 1 Minute In Sharing This Post!
SOCIALIZE IT →
FOLLOW US →
SHARE IT →
Related Posts Plugin for WordPress, Blogger...

Post your related queries below ...

comments powered by Disqus
Powered by Blogger.
 
© 2012 Learn Java by Examples Template by Hubber Spot