package com.twu.biblioteca;

import java.util.ArrayList;

/**
 * Created by watsonarw on 16/04/15.
 */
public class Library {
    private ArrayList<String> books = new ArrayList<String>();


    public void addBook(String book) {
        books.add(book);
    }


    public String getBookList() {
        StringBuilder sb = new StringBuilder();
        for(String book : books) {
            sb.append(book)
                    .append("\n");
        }
        return sb.toString();
    }

}

@@ -141,22 +141,20 @@
 rayList%3C
-String
+Book
 %3E books 
@@ -169,22 +169,20 @@
 rayList%3C
-String
+Book
 %3E();%0A%0A%0A 
@@ -204,22 +204,20 @@
 addBook(
-String
+Book
  book) %7B
@@ -249,16 +249,140 @@
 %0A    %7D%0A%0A
+    public void addBook(String title, String author, int year)%0A    %7B%0A        addBook(new Book(title, author, year));%0A    %7D%0A%0A
 %0A    pub
@@ -468,22 +468,20 @@
     for(
-String
+Book
  book : 
@@ -515,16 +515,27 @@
 end(book
+.toString()
 )%0A      

Make LibraryTest work