// Exercise 2.1.2 class Book { String title; String author; double price; int year; Book(String title, String author, double price, int year) { this.title = title; this.author = author; this.price = price; this.year = year; } } /* class Test{ Book b1 = new Book("LPP", "StEx", 15.50, 1943); Book b2 = new Book("LTdH", "StEx", 10.20, 1940); Book b3 = new Book("HtDP", "FFFK", 50.00, 2001); Book b4 = new Book("Robinson Crusoe", "Daniel Defoe", 15.50, 1790); Book b5 = new Book("Heart of Darkness", "Joseph Conrad", 12.80, 1902); Book b6 = new Book("Beach Music", "Pat Conroy", 9.50, 1996); } */