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