The following java code list system by calling System.getProperties().
package javaapplication14;
import java.util.Enumeration;
import java.util.Properties;
public class JavaApplication14 {
public static void main(String[] args) {
System.out.println("\nSystem Properties\n");
System.out.println("=================\n");
Properties properties = System.getProperties();
System.out.println(properties.toString());
System.out.println("\n");
Enumeration<String> prop
= (Enumeration<String>) properties.propertyNames();
while (prop.hasMoreElements()) {
String propName = prop.nextElement();
System.out.println(
propName + " : "
+ System.getProperty(propName));
}
}
}
How it run on Windows 10/Intel i5 vs Raspbian/Raspberry Pi 2.
Updated@2015-10-04: Appliable on Raspbian Jessie.
No comments:
Post a Comment