package com.twu.biblioteca;

public class BibliotecaApp {

    public static void main(String[] args) {
        BibliotecaApp app = new BibliotecaApp();
        System.out.println(app.getWelcomeMessage());

        Library lib = new Library();
        for (Book book: lib.getBookList()) {
            System.out.println(book.getDetails());
        }
    }

    public String getWelcomeMessage() {
        return "Welcome to Biblioteca\n";
    }
}

@@ -22,16 +22,68 @@
 oteca;%0A%0A
+import java.util.ArrayList;%0Aimport java.util.List;%0A%0A
 public c
@@ -102,16 +102,33 @@
 ecaApp %7B
+%0A    Library lib;
 %0A%0A    pu
@@ -273,45 +273,407 @@
 );%0A%0A
+%0A
     
+%7D%0A%0A
     
-Library lib = new Library();%0A
+public String getWelcomeMessage() %7B%0A        return %22Welcome to Biblioteca%5Cn%22;%0A    %7D%0A%0A    public List%3CString%3E getMenuOptions() %7B%0A        List%3CString%3E options = new ArrayList%3CString%3E();%0A        options.add(%22List Books%22);%0A        return options;%0A    %7D%0A%0A    public String getSelectedMenuOptionResult(String option) %7B%0A        if (option == %22List Books%22) %7B%0A            String result = %22%22;%0A    
     
@@ -725,35 +725,30 @@
         
-System.out.println(
+    result += 
 book.get
@@ -756,19 +756,29 @@
 etails()
-);%0A
+ + %22%5Cn%22;%0A    
         
@@ -787,91 +787,60 @@
     
-%7D%0A%0A    public String getWelcomeMessage() %7B%0A        return %22Welcome to Biblioteca%5Cn%22
+        return result;%0A        %7D%0A        return null
 ;%0A  

create functions to pass the biblioteac app tests