get Boolean value from String - Java java.lang

Java examples for java.lang:String Parse

Description

get Boolean value from String

Demo Code


//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);
    }
}

Related Tutorials