Quote (GetSpanked @ Nov 6 2013 09:42pm)
We haven't covered that and I am not allowed to use that.
He mentioned something about using a get method and using a bubble sort, but I'm not sure how to go about this.
how about compareTo for the Comparable interface?
here's some pseudocode for bubble sort to get you started
Code
procedure bubbleSort( A : list of sortable items )
repeat
swapped = false
for i = 1 to length(A) - 1 inclusive do:
/* if this pair is out of order */
if A[i-1] > A[i] then
/* swap them and remember something changed */
swap( A[i-1], A[i] )
swapped = true
end if
end for
until not swapped
end procedure