Search:

Type: Posts; User: Dave Bowman

Search: Search took 0.10 seconds.

  1. Re: Calculation looks like it should work, but doesn't.

    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;
  2. Calculation looks like it should work, but doesn't.

    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 <...
  3. Replies
    7
    Views
    1,348

    Re: Java Bubble Sort Issue

    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.
    ...
  4. Replies
    7
    Views
    1,348

    Re: Java Bubble Sort Issue

    System.out.println(bookList);

    Gives me.

    [Book@272d7a10, Book@1aa8c488, Book@3dfeca64, Book@22998b08, Book@e76cbf7]
  5. Replies
    7
    Views
    1,348

    Java Bubble Sort Issue

    Thanks to everyone who helped!
Results 1 to 5 of 5