It's printing the content in the order it appears in the code.
--- Update ---
Do I need a compareTo bit in my Book class. Like with all this stuff?
String title;
int rating;
Type: Posts; User: Dave Bowman
It's printing the content in the order it appears in the code.
--- Update ---
Do I need a compareTo bit in my Book class. Like with all this stuff?
String title;
int rating;
I have a calculation that sorts books by rating...
System.out.println("\r" + "\n\tSorted by Rating\n");
for (int count = 0; count < bookL.size(); count++) {
for (int in = 0; in <...
Though I still have one question? Is this considered a "bubble sort" or just a way to sort? I understand the difference, I just want to make sure I am fulfilling the requirements of the assignment.
...
System.out.println(bookList);
Gives me.
[Book@272d7a10, Book@1aa8c488, Book@3dfeca64, Book@22998b08, Book@e76cbf7]
Thanks to everyone who helped!