Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

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

import java.io.IOException;

import java.net.Socket;

public class Main {
    public static void closeQuietly(Closeable paramCloseable) {
        if (paramCloseable != null)
            ;
        try {
            paramCloseable.close();
            return;
        } catch (IOException localIOException) {
        }
    }

    public static void closeQuietly(Socket paramSocket) {
        if (paramSocket != null)
            ;
        try {
            paramSocket.close();
            return;
        } catch (Exception localException) {
        }
    }
}