@@ -0,0 +1,941 @@
+public class Book %7B%0AString title;%0Aboolean borrowed;%0A// Creates a new Book%0Apublic Book(String bookTitle) %7B%0A    title = bookTitle;%0A    borrowed = false;%0A%7D%0A// Marks the book as rented%0Apublic void borrow() %7B%0A    borrowed = true;%0A%7D%0A// Marks the book as not rented%0Apublic void returned() %7B%0A    borrowed = false;%0A%7D%0A// Returns true if the book is rented, false otherwise%0Apublic boolean isBorrowed() %7B%0A    return borrowed;%0A%7D%0A// Returns the title of the book%0Apublic String getTitle() %7B%0A    return title;%0A%7D %0Apublic static void main(String%5B%5D arguments) %7B%0ABook example = new Book(%22The Da Vinci Code%22);%0ASystem.out.println(%22Title (should be The Da Vinci Code): %22 + example.getTitle());%0ASystem.out.println(%22Borrowed? (should be false): %22 + example.isBorrowed());%0Aexample.borrow();%0ASystem.out.println(%22Borrowed? (should be true): %22 + example.isBorrowed());%0Aexample.returned();%0ASystem.out.println(%22Borrowed? (should be false): %22 + example.isBorrowed());%0A%7D%0A%7D %0A

Create assign4_Book.java