title: SQL Query based on user input in Java
body: <pre><code>dis = new DataInputStream(csocket.getInputStream());
  int choice = dis.readInt();
  Connection conn = MySqlConnect.ConnectDB();
  PreparedStatement pst = conn.prepareStatement("Select hostname from clients where C_ID=");
  ResultSet rs = pst.executeQuery();
  </code></pre>
  
  <p>How can I put choice into the given query?</p>