package com.twu.biblioteca.options;

import com.twu.biblioteca.Biblioteca;
import com.twu.biblioteca.GUI;

/**
 * Created by gdias on 8/3/15.
 */
public class ReturnResourceOption extends AbstractOption {

    public ReturnResourceOption(int number, String name) {
        super(number, name);
    }

    @Override
    public String execute(Biblioteca biblioteca) {
        System.out.println("Enter book name, please.");
        String userInputBook = GUI.getUserInput();

        if(biblioteca.returnResource(userInputBook)) {
            return "Thank you for returning the book.";
        } else {
            return "That is not a valid book to return.";
        }
    }
}

@@ -570,20 +570,24 @@
 ing the 
-book
+resource
 .%22;%0A    
@@ -639,20 +639,24 @@
 a valid 
-book
+resource
  to retu

Fix returnResource messages