Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- else if ( inputline.equalsIgnoreCase("Rent")) {
- String removedvd = fromClient.nextLine();
- for (int count = 0; count < dvd.size(); count++) {
- if(dvd.contains(removedvd)) {
- dvd.remove(count);
- }
- System.out.println("*** Removed DVD ***");
- toClient.println(count);
- System.out.println("*** UPDATED LIST ***");
- toClient.println(dvd);
- }
- else if (userInput.equalsIgnoreCase("Rent")) {
- try {
- String removedvd = "Her";
- toServer.println(removedvd);
- String remove = fromServer.nextLine();
- System.out.println(remove);
- String list = fromServer.nextLine();
- System.out.println(list.toString());
- }
- if(dvd.contains(removedvd)) {
- dvd.remove(count);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement