title: Desktop app. communicate with remote Tomcat servlet
body: <p>I am looking for some code examples of a local java program that communicates with a servlet on a tomcat server. </p>
  
  <p>I am trying to write a program that can send a single string to the server and be returned another string. Quite a simple thing but cannot find any tutorials or examples for communication with a remote server.</p>