I\'m creating server and client java applications. I would like to create an array to store my sockets in. I\'m using eclipse, and when I type in this line:
You can outsmart this problem easily, just create a class containing a socket connection, then build an array of this class object.
Build the class:
Class example { Socket con;
The constructor and extra code here ...
}
Then just build the array:
example[] arr=new example[3];