카테고리 없음
API 보다가 피식 웃었다.
윤보람
2010. 3. 15. 14:54
Boolean
public Boolean(String s)
- Allocates a
Boolean
object representing the valuetrue
if the string argument is notnull
and is equal, ignoring case, to the string"true"
. Otherwise, allocate aBoolean
object representing the valuefalse
. Examples:new Boolean("True") produces a Boolean object that represents true.
new Boolean("yes") produces a Boolean object that represents false.- Parameters:
s
- the string to be converted to aBoolean
.
빨간 폰트 부분에서 피식 웃었다.
자바에선 파란 폰트만 알면, Boolean 객체를 생성하는데 문제가 없다.
JS 에선 Boolean 객체 생성하는게 조금 개념이 다르다. 유의 할 것.
yes!!