Java tutorial
//package com.java2s; public class Main { public static boolean isTrueString(String str) { str = str.toLowerCase(); return "true".equals(str) || "1".equals(str) || "yes".equals(str); } }