Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
//License from project: Apache License 

import java.util.ArrayList;

public class Main {
    public static ArrayList<Boolean> asBooleanList(String[] stringArray) {
        ArrayList<Boolean> result = new ArrayList<Boolean>();
        if (stringArray != null) {
            for (String string : stringArray) {
                result.add(Boolean.valueOf(string));
            }
        }
        return result;
    }
}