J�rkeborn Joacim wrote:
> 
> HI Magnus,
> 
> Make use of the simple datatype 'boolean' instead of the object 'Boolean'

or... :

boolean BoolDans = (new
Boolean(request.getParameter("...."))).booleanValue();

The Boolean class has a String constructor that returns Boolean.TRUE if
the string is not null and equal to "true" and Boolean.FALSE otherwise.
The 'booleanValue' creates a primitive type from this. BTW - 'new
Boolean(false)' is not all that good an idea, use
'Boolean.valueOf(false)' instead, as this avoids the overheads of object
creation etc.

Tom Oinn

Reply via email to