THE PACKAGE JAVA.LANG
java.lang.Boolean
20.4
20.4 The Class
java.lang.Boolean
Objects of type
Boolean
 represent primitive values of type
boolean
.
public final class Boolean {
public static final Boolean TRUE = new Boolean(true);
public static final Boolean FALSE = new Boolean(false);
public Boolean(boolean value);
public Boolean(String s);
public String toString();
public boolean equals(Object obj);
public int hashCode();
public boolean booleanValue();
public static Boolean valueOf(String s);
public static boolean getBoolean(String name);
}
20.4.1
public static final Boolean TRUE = new Boolean(true);
The constant value of this field is a
Boolean
 object corresponding to the primitive
value
true
.
20.4.2
public static final Boolean FALSE = new Boolean(false);
The constant value of this field is a
Boolean
 object corresponding to the primitive
value
false
.
20.4.3
public Boolean(boolean value)
This constructor initializes a newly created
Boolean
 object so that it represents
the primitive value that is the argument.
20.4.4
public Boolean(String s)
This constructor initializes a newly created
Boolean
 object so that it represents
true
 if and only if the argument is not
null
 and is equal, ignoring case, to the
string
"true"
.
Examples:
new Boolean("True")
 produces a
Boolean
 object that represents
true
.
new Boolean("yes")
 produces a
Boolean
 object that represents
false
.
469






footer




 

 

 

 

 Home | About Us | Network | Services | Support | FAQ | Control Panel | Order Online | Sitemap | Contact

java hosting

 

Our partners: PHP: Hypertext Preprocessor Best Web Hosting Java Web Hosting Inexpensive Web Hosting  Jsp Web Hosting

Cheapest Web Hosting Jsp Hosting Cheap Hosting

Visionwebhosting.net Business web hosting division of Web Design Plus. All rights reserved