title: Return data from Servlet to Java Client
body: <p>Hi i have a problem with returning data from Servlet to Java Client.
  This is a first time that i use a servlet.
  All examples that i saw on the web return data to an HTML page but i want make a Server-Client software where Server do something and return a String List.</p>
  
  <p>How can i return from a GET/POST method an Array to a Client? What do i set in setContentType?
  I didnt understand how can i put in response the information that i want (like int , array , String) and return to the Client.</p>
  
  <p>If someone could make an example where a Java Client make a POST request and a Servlet return to him a Array or ArrayList i would be very happy.</p>