以下是 Java 中快速排序的代码示例:
import java.util.Arrays;
public class QuickSort {
public static void main(String[] args) {
int[] nums = {4, 2, 9, 6, 23, 12, 34, 0, 1};
quickSort(nums, 0, nums.length-1);
System.out.println(Arrays.toString(nums));
}
public static void q