I know how to communicate with a server using a PHP script with JSON, but if the server was written in Java how would I communicate with the server using my Java program.
Would it be the same or is there some easier way that would exclude JSON?
The way I’m used to doing it is using a post request and then encoding/decoding in JSON
it is not a webserver
The most efficient way is to use Sockets. The tutorial does a good job of showing a client/server example.