Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
public void afficher() {
System.out.println("----");
public void afficher() {
System.out.println("----");
- for (int i = 0; i < getSize(); i++) {
+ for (int i = 0; i < getCurrentSize(); i++) {
System.out.println("element " + i + " " + int_array[i]);
}
}
System.out.println("element " + i + " " + int_array[i]);
}
}
* [afficher description]
*/
public void afficher() {
* [afficher description]
*/
public void afficher() {
- for (int i = 0; i < getSize(); i++) {
+ for (int i = 0; i < getHeadIndex(); i++) {
System.out.println("element " + i + " " + int_array[i]);
}
}
System.out.println("element " + i + " " + int_array[i]);
}
}