[JAVA] 선택정렬, 버블정렬
선택정렬 int arr[] = { 89, 51, 23, 25, 76, 7, 11 }; for (int i = 0; i arr[j]) { int temp; temp = arr[i]; arr[i] = arr[j]; arr[j] = temp; } } } for(int n: arr){ System.out.print(n + ", "); } 버블정렬 int arr[] = { 89, 51, 23, 25, 76, 7, 11 }; for (int i = 1; i < arr.length; i++) { for (int j = 0; j < arr.length - i; j++) { if (a..