Left file: Present ChatThread.java Right file: Completed ChatThread.java
import java.util.Scanner ; | <> | import java.util.*; |
public class ChatThread implements Runnable { | <> | public class ChatThread extends Thread{ |
<> | private Scanner in; | |
public PrintWriter out; | ||
private int thread_number; | private String input; | |
public void run() | <> | public void run() |
<> | while (true) {//While ServerFrame is running | |
socket=s_socket.accept(); | socket=s_socket.accept(); | |