/ Published in: Java
This is a Bubble Sorter in java
(was a pain in the ass to get right)
you can change the sorting style from ascending to descending order
by changing the line
if(vals[d+1] < vals[d])
to
if(vals[d+1] > vals[d])
(was a pain in the ass to get right)
you can change the sorting style from ascending to descending order
by changing the line
if(vals[d+1] < vals[d])
to
if(vals[d+1] > vals[d])