code: public String process(String data){
  		try {
  			out.write(data);
  			out.write((char)0);
  			out.flush();
  			
  			//Get data from server
  			String tagged = "";
  			while (true){				
  				int ch = in.read();
  				
  				if (ch == 0) break;
  				tagged += (char) ch;			
  			}
  			return tagged;
  		}
  		catch (Exception e){
  			System.out.println(e.getMessage());
  			return "";
  		}
  		
  	}
docs: Process.
  
  @param data the data
  @return the string