SHOW:
|
|
- or go back to the newest paste.
| 1 | - | public void contains(Inventory inv, int[] i){
|
| 1 | + | public boolean contains(Inventory inv, int[] i){
|
| 2 | - | boolean found = false; |
| 2 | + | |
| 3 | if(inv.contains(x)){
| |
| 4 | - | if(found){
|
| 4 | + | return true; |
| 5 | - | continue; |
| 5 | + | |
| 6 | } | |
| 7 | return false; | |
| 8 | - | found = true; |
| 8 | + |