Hello,
I must make a program in console mode (DOS). This program provides the tools.
One of the functions calls the first coed of the tool if the code returned is already in the list of tools, the program must request the code. Here is part of a program that checks the code of the tool. I can browse the list, compare the code of the tool and display the error message, but I can not call the entry code tool again on error. Basically I am confused in finding the items in the array list
Here is my part code
Code:
uot = list.first element();
//
/ / do (
System.out.System.out.println("VERIFY CODE");
cdinv = saisirCodeInventaire();
if(! list.isEmpty()){
do{
if(uot.gtcodl().equals(cdinv)){
System.out.System.out.println("ERROR CODE INVENTORY!");
/ / finListe = true;
cdinv = saisirCodeInventaire();
cdinvExiste = true;
}
else
cdinvExiste = false;
if(! cdinvExiste){
if(uot == list.last element())
finListe = true;
else
uot = list.successeurDe(uot);
}
}while(! finListe | | == cdinvExiste true);
}
/ /) while (cdinvExiste);
Bookmarks