Advertisement
Guest User

Untitled

a guest
Sep 25th, 2017
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. /*
  2. * To change this template, choose Tools | Templates
  3. * and open the template in the editor.
  4. */
  5. package worldoffailcraft;
  6.  
  7. import java.util.*;
  8.  
  9. /**
  10. *
  11. * @author Aiden
  12. */
  13. public class Inventory extends Char {
  14.  
  15. ArrayList inv;
  16. Thread inventory;
  17.  
  18. public Inventory() {
  19. ArrayList inv = new ArrayList();
  20. Thread inventory = new Thread();
  21. }
  22.  
  23. public void run() {
  24. while (inventory.isAlive()) {
  25. if(inv.size() >= 18) {
  26. inv.remove(18);
  27. }
  28. }
  29. }
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement