Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

public class Main {
    /**
     *  Parses a boolean value from a string
     *  @param str
     *  @return boolean
     **/
    public static Boolean parseStringToBoolean(String str) {
        if (str == null)
            return (false);

        str = str.toLowerCase();
        return (("true").equals(str));
    }
}