Time for an 2014 update…
This commit is contained in:
parent
372c577f83
commit
09687c4926
2520 changed files with 34227 additions and 7318 deletions
|
|
@ -4,13 +4,13 @@ import java.net.ServerSocket;
|
|||
import java.net.Socket;
|
||||
|
||||
public class HelloWorld{
|
||||
public static void main(String[] args) throws IOException{
|
||||
ServerSocket listener = new ServerSocket(8080);
|
||||
while(true){
|
||||
Socket sock = listener.accept();
|
||||
new PrintWriter(sock.getOutputStream(), true).
|
||||
println("Goodbye, World!");
|
||||
sock.close();
|
||||
}
|
||||
}
|
||||
public static void main(String[] args) throws IOException{
|
||||
ServerSocket listener = new ServerSocket(8080);
|
||||
while(true){
|
||||
Socket sock = listener.accept();
|
||||
new PrintWriter(sock.getOutputStream(), true).
|
||||
println("Goodbye, World!");
|
||||
sock.close();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue