i have a problem >>

programming language: java
Data base: Mysql database 

i write a java code for retrive the record from the database based on the data parameters comping from the method>> 

the code is: 

```
public static void Get_patient_data(String Hospital1_ID,String Hospital2_ID {       
   try {
      Connection con = getConnection2();
      PreparedStatement statement = (com.mysql.jdbc.PreparedStatement)
         con.prepareStatement(
            "SELECT PatientGender "+
            "FROM patientcorepopulatedtable "+
               "WHERE PatientID = Hospital1_ID LIMIT 1" );
      ResultSet result = statement.executeQuery();
      ArrayList<String> array = new ArrayList<String>();
      while( result.next()) {
         System.out.print("the patient Gender is"  +
            result.getString("PatientGender"));
      }
   }
   catch(Exception e) {
      System.out.println("Error"+e);
   }
}

```

As you see the problem is Hospital1\_ID parameter .. is coming from the method and the patientID is a column in a table patientcorepopulatedtable ... 

the `=` equal operator doesn't work.