Here you can find the source of valueOfBoolean(String string)
public static int valueOfBoolean(String string)
//package com.java2s; //License from project: Apache License public class Main { /**/*from www .ja v a2s . c om*/ * Convert a Sting 'TRUE' to 1, otherwise 0. */ public static int valueOfBoolean(String string) { return string != null && "TRUE".equalsIgnoreCase(string) ? 1 : 0; } }