Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
import java.io.IOException;

import java.io.OutputStream;

public class Main {

    public static void closeOutputStream(OutputStream... ous) {
        if (ous != null && ous.length > 0) {
            for (OutputStream out : ous) {
                if (out != null) {
                    try {
                        out.close();
                    } catch (IOException e) {
                        e.printStackTrace();
                    }
                }
            }
        }
    }
}