Just use the code I posted above then, or even do it without the threading.
// Json
Type: Posts; User: Json
Just use the code I posted above then, or even do it without the threading.
// Json
I take it these two classes are in the same client and not two different programs on start up?
Something like this would possibly work.
public class MainClass {
public static void...
Id have a look at Writing the Server Side of a Socket (The Java™ Tutorials > Custom Networking > All About Sockets) at specifically at the bottom of that page.
// Json