Skip to content

Instantly share code, notes, and snippets.

@Jezza
Created November 24, 2013 15:13
Show Gist options
  • Save Jezza/7628266 to your computer and use it in GitHub Desktop.
Save Jezza/7628266 to your computer and use it in GitHub Desktop.
private ArrayList<InventoryInstance> tempInv = new ArrayList<InventoryInstance>();
private ArrayList<InventoryInstance> requestedList = new ArrayList<InventoryInstance>();
tempInv.add(new InventoryInstance(stuff blah boring things));
tempInv.removeAll(requestedList);
for(InventoryInstance i : tempInv){
System.out.println("Temp: " + i);
}
for(InventoryInstance i : requestedList){
System.out.println("Temp: " + i);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment