Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.io.IOException;
import java.net.URL;

public class Main {

    public static void main(String[] args) {
        try {
            URL url = new URL("http://www.java2s.com");
            System.out.println("URL is " + url.hashCode());
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

}