How to read some property passed from command line like -Dthread.count
I saw it, but I'm not sure how to read that one in java code
String value = System.getProperty("thread.count");
Java has this documented:
http://download.oracle.com/javase/tutorial/essential/environment/sysprop.html
Basically, you're reading in the value of a System Properties. The link above gives you an example.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With