1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
ArrayList A= new ArrayList();
ArrayList B= new ArrayList();
ArrayList V= new ArrayList();
String element ="select * from test";
resultat = instruction.executeQuery(element);
for (int i=0;i<10;i++)
{
String c=V.get(a).toString() ;
String aa11="select * from test";
resultat = instruction.executeQuery(aa11);
while (resultat .next() ) {
String rip=resultat.getString("RIP");
if (c.equals(rip)){
A.add(c);
//comment sortir de la boucle while
}
else
{
B.add(c);
//comment sortir de la boucle while
}
}
} |