Re: Is this the way to do it?

2001-09-17 Thread Madock Chiwenda
Use boolean primitives instead of objects: boolean x = true; boolean y = false; if(x == y){ //do something } //do other thing . Go to Java programming fundamentals for details Madock 9/17/01 10:24:47 AM, "Magnus Jansson" <[EMAIL PROTECTED]> wrote: >Hi I'm a newbie at both jsp

RE: Is this the way to do it?

2001-09-17 Thread Michael Wentzel
> > > 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 > B

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 con

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 n

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; }