Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

public class Main {
    public static boolean parse(String string) {
        if (string.equals("0")) {
            return false;
        } else if (string.equals("1")) {
            return true;
        } else {
            return Boolean.getBoolean(string);
        }
    }
}