package com.cuiqi.test;
import java.util.Scanner;
import static java.lang.System.in;
import static java.lang.System.out;
/**
*
* 快速排序法
* Created by tracy on 2017/7/18.
*/
public class QuickSort {
public static void main(String...args){
out.print("請輸入10個數字,用空格隔開:");
int[] numbers = inputNumbers();
swap(0,numbers.length - 1,numbers);
for(int i=0; i<numbers.length;i++){
out.print(numbers[i]);
if(i != numbers.length-1){
out.print(",");
}
package com.cuiqi.test;
import java.util.Scanner;
import static java.lang.System.in;
import static java.lang.System.out;
/**
*
* 快速排序法
* Created by tracy on 2017/7/18.
*/
public class QuickSort {
public static void main(String...args){
out.print("請輸入10個數字,用空格隔開:");
int[] numbers = inputNumbers();
swap(0,numbers.length - 1,numbers);
for(int i=0; i<numbers.length;i++){
out.print(numbers[i]);
if(i != numbers.length-1){
out.print(",");
}
}