//////////figured it out
Originally Posted by Friskiukas Code: public enum ClientMode { LOCAL("127.0.0.1", 43594), LIVE("127.0.0.1", 43594); private final String address; private final int port; private ClientMode(String address, int port) { this.address = address; this.port = port; } public String getAddress() { return address; } public int getPort() { return port; } } Trying to compile this little .java file into a .class, with javac. I'd do it with eclipse, but no idea how. (Javac errors it.) hilf mir! i believe you're the one being stupid not javac
public enum ClientMode { LOCAL("127.0.0.1", 43594), LIVE("127.0.0.1", 43594); private final String address; private final int port; private ClientMode(String address, int port) { this.address = address; this.port = port; } public String getAddress() { return address; } public int getPort() { return port; } }
There are currently 1 users browsing this thread. (0 members and 1 guests)
Forum Rules