Search:

Type: Posts; User: asundar

Search: Search took 0.10 seconds.

  1. Replies
    4
    Views
    1,398

    Re: Bubble Sort Help

    I was able to see my mistake; it was that I iterated n from 0 to out, instead of out-1 because arrays start at 0. I can still post my code, if you would like me to so I can help others that make the...
  2. Replies
    4
    Views
    1,398

    Re: Bubble Sort Help

    Sure thing:


    /*
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    */
    package array;

    /**
  3. Replies
    4
    Views
    1,398

    Bubble Sort Help

    Hi everyone,

    I'm trying to do a bubble sort where it takes the largest element and takes it to the right. It works for the most part, but then for some reason the right-most element (after the...
Results 1 to 3 of 3