example of server and client java apps