This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Hey there @aeren108, I saw your question on Reddit, so I thought this might be the easiest way to help you out a bit. | |
* I promise this won't be a complete solution, but will only give you a push in the right direction! | |
*/ | |
public class ChatServer { //First, we will need a ServerSocket to listen for connecting Sockets. | |
private static final int DEFAULT_PORT = 1337; // In Java, the basic way to create a constant (without the | |
// use of enumerables) is to use the keywords private and static. | |