Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.net.InetSocketAddress;
import java.nio.channels.ServerSocketChannel;

public class Main {
    public static void main(String[] argv) throws Exception {

        ServerSocketChannel ssChannel = ServerSocketChannel.open();
        ssChannel.configureBlocking(false);
        int port = 80;
        ssChannel.socket().bind(new InetSocketAddress(port));

    }
}