Please create an account to participate in the Slashdot moderation system

 



Forgot your password?
typodupeerror

Comment Java... public boolean Boolean.getBoolean(String) (Score 1) 1261

This does not do what you think it would do. My first guess it would look for 'T' / 'F' chars and report true for 'T' and false for 'F'.

getBoolean(String name) Returns true if and only if the system property named by the argument exists and is equal to the string "true".

What does system properties have to do with a primative class in java ??

Easy solution is to create a new Boolean from a string and use getBooleanValue to get it's value.

Slashdot Top Deals

If you fail to plan, plan to fail.

Working...