System Properties

import java.util.Enumeration;
import java.util.Properties;
public class SystemPropertiesDemo
{
	public static void main(String[] args) 
	{
	Properties p=System.getProperties();
	Enumeration e1=p.propertyNames();
	while(e1.hasMoreElements())
	{
		String s=e1.nextElement().toString();
		System.out.println("name -"+s);
		System.out.println(p.getProperty(s));
		System.out.println("=======================");
	}
	}
}

Download

Collections in Java

ArrayList Example
HashMap Example
HashTable Example
Array Sort
Read Properties File
Get System Properties


Write your Comment

Name :
Email Id : [ We will not publish your email id ]
Your Comment : [ Maximum 200 chars ]
Enter Security code