Advertisement
Guest User

Untitled

a guest
Apr 17th, 2014
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. else if ( inputline.equalsIgnoreCase("Rent")) {
  2. String removedvd = fromClient.nextLine();
  3. for (int count = 0; count < dvd.size(); count++) {
  4. if(dvd.contains(removedvd)) {
  5. dvd.remove(count);
  6. }
  7. System.out.println("*** Removed DVD ***");
  8. toClient.println(count);
  9. System.out.println("*** UPDATED LIST ***");
  10. toClient.println(dvd);
  11. }
  12.  
  13. else if (userInput.equalsIgnoreCase("Rent")) {
  14. try {
  15. String removedvd = "Her";
  16. toServer.println(removedvd);
  17. String remove = fromServer.nextLine();
  18. System.out.println(remove);
  19. String list = fromServer.nextLine();
  20. System.out.println(list.toString());
  21. }
  22.  
  23. if(dvd.contains(removedvd)) {
  24. dvd.remove(count);
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement