I'm getting the following message:
Cannot resolve method 'println(java.lang.String)'
In the following code and have absolutely no idea why that can be the case:
import java.net.ServerSocket;
import java.net.Socket;
import java.io.DataInputStream;
public class ChatServer {
private final Socket theSocket;
private final ServerSocket theServerSocket;
private final DataInputStream theDataInputStream;
public ChatServer(Socket aSocket, ServerSocket aServerSocket, DataInputStream aDataInputStream) {
theSocket = aSocket;
theServerSocket = aServerSocket;
theDataInputStream = aDataInputStream;
}
public void start(int port) {
System.out.println("Whatever");
}
}