Java冒泡排序,數組比較獲取最大最小值

public class Bubblesort { //實現冒泡排序 public static void main(String[] args) { // TODO 自動生成的方法存根 /* * 第一個數與進行第二個數比較,知足條件位置不變,不知足則互換位置,第二與第三繼續比較,直到最後。每次比較的趟數-1 * */ // int[] sort= {10,8,16,22,18,30}; // S
相關文章
相關標籤/搜索