Java examples for java.lang:String Parse
get Boolean value from String
//package com.java2s; public class Main { public static void main(String[] argv) throws Exception { String value = "java2s.com"; System.out.println(getBoolean(value)); }//from w ww. ja va2s . c o m public static Boolean getBoolean(String value) { return Boolean.valueOf(value); } }