Skip to content

Instantly share code, notes, and snippets.

View marcrovi's full-sized avatar

Marc Rovirola marcrovi

View GitHub Profile
@marcrovi
marcrovi / Medium Final Example
Created May 15, 2020 19:56
Medium Final Example
import java.util.List;
import java.util.*;
public class FinalExample{
public static void main(String[] args){
List<Book> listBooks = new ArrayList<Book>();
//Create 4 Harry Potter books
Book harryPotter1 = new Book();
harryPotter1.setTitle("Harry Potter and The Philosopher's Stone");
harryPotter1.setAuthor("J.K. Rowling");