Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void removeAllOccurences (Book book) {
- for(int i=0; i<this.numberOfBooks(); i++) {
- if(arrayBook[i].equals(book)) {
- for(int j=i+1; j<this.nbLivre; j++) {
- arrayBook[j-1]=arrayBook[j];
- }//FIN FOR
- i--;
- this.nbLivre--;
- }//FIN IF
- }//FIN FOR
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement