RE: Is this the way to do it?

2001-09-17 Thread Järkeborn Joacim
HI Magnus, Make use of the simple datatype 'boolean' instead of the object 'Boolean' boolean BoolDans = false; boolean BoolAllman = false; boolean BoolFof = false; boolean BoolTextil = false; boolean BoolHp = false; if (request.getParameter(IntresseDans) != null) { BoolDans = true; }

Re: Is this the way to do it?

2001-09-17 Thread Tom Oinn
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

RE: Is this the way to do it?

2001-09-17 Thread Wouter Boers
Java does have a slimmed down version of the Object of most frequently used primitive types boolean - Boolean int - Interger float - Depends what you want BigInteger, Double etc etc Look at the JavaDoc documentation of java int the java.lang.*, usually there is a toInt() method to

RE: Is this the way to do it?

2001-09-17 Thread Michael Wentzel
snip Boolean BoolDans = new Boolean(false); Boolean BoolAllman = new Boolean(false); Boolean BoolFof = new Boolean(false); Boolean BoolTextil = new Boolean(false); Boolean BoolHp = new Boolean(false); if (request.getParameter(IntresseDans) != null) {BoolDans = new