Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.net.* ;
- import java.io.* ;
- import java.util.* ;
- public class Server {
- public static void main(String[] args) {
- try {
- ServerSocket sock = new ServerSocket(4712,100) ;
- while(true) new Handler(sock.accept()).start() ;}
- catch (IOException e) {
- System.err.println(e) ;}}}
- class Handler extends Thread {
- public void run() {
- Random random = new Random() ;
- try {
- //yada yada yada }
- catch(Exception e) {
- System.err.println(e) ;}}}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement