Commons Lang、BooleanUtils.toStringTrueFalse()
import org.apache.commons.lang.BooleanUtils; public class C2009033000 { public static void main(String[] args) { System.out.println(BooleanUtils.toStringTrueFalse(true)); System.out.println(BooleanUtils.toStringTrueFalse(false)); System.out.println(BooleanUtils.toStringTrueFalse(new Boolean(true))); System.out.println(BooleanUtils.toStringTrueFalse(new Boolean(false))); } }
で、
true false true false