title: convert a statement into a prepared statement java
body: <pre><code>static int R;
  
  stmt = conn.createStatement();
  
  String query = "SELECT Points.Name, Points.x, Points.y FROM Points + "WHERE Points.x&gt;=" + (x-R) + " AND Points.x&lt;="+ (x + R) + " AND Points.y&gt;=" + (y - R) + " AND Points.y&lt;="+ (y + R) + " AND Points.Name='" + name + "'";
  
  rs = stmt.executeQuery(query);
  </code></pre>
  
  <p>Could someone help me convert the above query into another for a prepared statement?</p>