Look at the documentation: Java.lang.Boolean.valueOf() Method
Quote:The Boolean returned represents a true value if the string argument is not null and is equal, ignoring case, to the string "true".
Since "1" is not teh same as "true", "TRUE", "True" or any other combination you will always get
as a result.
Try this instead:
java Test true