Also see Chapter 15 in Head First Java (your textbook) to get an in-depth explanation of Networking and Threads.
This will be one of the first pieces of code in this legacy code project, which will exist for years to come. Think carefully about your design decisions e.g. don't just throw your code in Main, consider making a Server class with server-socket, connection-socket, and port member variables.
Create a server that opens a TCP connection and listens on port 3000 for an incoming connection.
See http://www.java-samples.com/showtutorial.php?tutorialid=1167 for a short introduction to TCP sockets in Java.
Also see Chapter 15 in Head First Java (your textbook) to get an in-depth explanation of Networking and Threads.
This will be one of the first pieces of code in this legacy code project, which will exist for years to come. Think carefully about your design decisions e.g. don't just throw your code in Main, consider making a Server class with server-socket, connection-socket, and port member variables.
300 points