System.getProperties()
import java.util.stream.Stream;
public class TestProperties {
public static void main(String[] args) {
// Object[] properties = System.getProperties().keySet().toArray();
// for (Object value : properties) {
// System.out.println(value + " " + System.getProperty((String) value));
// }
// Stream.of(properties).forEach(value -> {
// System.out.println(value + " " + System.getProperty((String) value));
// });
Stream.of(System.getProperties().keySet().toArray()).forEach(value -> {
System.out.println(value + " " + System.getProperty((String) value));
});
}
}



