while (rs.next())
{
cod_exame.add(rs.getString("cod_exame"));
}
public ArrayList cod_exame = new ArrayList();
Iterator it = cod_exame.iterator();
public void exibePacienteFenotipo(ArrayList cod_exame)
{
try{
con = getConnection();
PreparedStatement stmt=con.prepareStatement("select pac_codigo from H_BSExame where codExame=?");
while(it.hasNext()){
cod = it.get(it.next()); // linha da duvida
stmt.setInt(1,cod);
}
ResultSet rs = stmt.executeQuery();
while (rs.next())
{
paciente.add(Integer.toString(rs.getInt("pac_codigo")));
}
}
catch (Exception e) {
e.printStackTrace();
}
}
Porém a linha // cod = it.get(it.next()); esta dando erro, e não sei como resgatar tais dados.Alguem pode me ajudar?
[size="11"][color="red"]* Editado: Lembre-se de utilizar BBCode em seus códigos - Carneiro[/color][/size] :joia:
