Question
Also write a test program that creates at least 5 books (just create books directly in the program code, and not by reading from the user). Print all the books as they are recorded and then all (alphabetically) sorted by title. Read a new book from the user, and add it to the list if this book is not there already. Finally, print a list of all the books that have been published in a year is uploaded from the user.
Solution Preview
This material may consist of step-by-step explanations on how to solve a problem or examples of proper writing, including the use of citations, references, bibliographies, and formatting. This material is made available for the sole purpose of studying and learning - misuse is strictly forbidden.
import static java.lang.System.*;import javax.swing.JOptionPane;
import javax.swing.JFrame;
public class test {
public static void main(String args[])...