Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import java.net.HttpURLConnection;

public class Main {
    public static void disconnectSafely(HttpURLConnection connect) {
        if (connect != null) {
            try {
                connect.disconnect();
            } catch (Exception e) {
                e.printStackTrace();
            }
        }
    }
}