Skip to content

Instantly share code, notes, and snippets.

@sankars
Created November 24, 2013 08:02
Show Gist options
  • Select an option

  • Save sankars/7624629 to your computer and use it in GitHub Desktop.

Select an option

Save sankars/7624629 to your computer and use it in GitHub Desktop.
import java.util.Properties;
public class PrintSystemProperties{
public static void main(String[] args) {
Properties prop = System.getProperties();
for( String name : prop.stringPropertyNames())
{
System.out.println( name + " : " + prop.getProperty(name)) ;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment