try to implement bubble sort in java.