package com.twu.biblioteca;

import java.util.ArrayList;
import java.util.List;

public class BibliotecaApp {
    List<String> books;

    public BibliotecaApp() {
        books = new ArrayList<>();
        books.add("Harry Potter and The Sorcer\'s Stone");
        books.add("Harry Potter and The Chamber of Secrets");
    }

    public static void main(String[] args) {

    }

    public void welcomeMessage() {
        System.out.println("Welcome to Biblioteca");
    }

    public void books() {
        for (int i = 0; i < books.size(); i++) {
            System.out.println(i + 1 + ". " + books.get(i));
        }
    }
}
@@ -118,16 +118,18 @@
 t%3CString
+%5B%5D
 %3E books;
@@ -204,32 +204,45 @@
       books.add(
+new String%5B%5D%7B
 %22Harry Potter an
@@ -263,16 +263,42 @@
 s Stone%22
+, %22J. K. Rowling%22, %222000%22%7D
 );%0A     
@@ -310,16 +310,29 @@
 oks.add(
+new String%5B%5D%7B
 %22Harry P
@@ -368,63 +368,36 @@
 ets%22
-);%0A    %7D%0A%0A    public static void main(String%5B%5D args) %7B%0A
+, %22J. K. Rowling%22, %222001%22%7D);
 %0A   
@@ -533,119 +533,423 @@
     
-for (int i = 0; i %3C books.size(); i++) %7B%0A            System.out.println(i + 1 + %22. %22 + books.get(i));%0A        %7D
+StringBuilder sb = new StringBuilder();%0A        for (String%5B%5D book : books) %7B%0A            sb.append(book%5B0%5D).append(%22, %22).append(book%5B1%5D).append(%22, %22).append(book%5B2%5D).append(%22%5Cn%22);%0A        %7D%0A        System.out.println(sb.toString());%0A    %7D%0A%0A    public static void main(String%5B%5D args) %7B%0A        BibliotecaApp bibliotecaApp = new BibliotecaApp();%0A        bibliotecaApp.welcomeMessage();%0A        bibliotecaApp.books();
 %0A   

Change books data structure in BibliotecaApp