Boolean.getBoolean()
Quickly, what is printed by the following line of Java code?
System.out.println(Boolean.getBoolean("true"));
Re: Boolean.getBoolean()
The last comment is correct. The code becomes more obvious when you write it like this:
boolean isTestMode = Boolean.getBoolean("com.mycompany.istestmode");
It looks for a system property named "com.mycompany.istestmode" and returns true if that system property equals "true", "TRUE", "tRUE", etc...