package com.huawei.test;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
import java.util.Scanner;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class SubStringSort {
public static void main(String[] args) {
// TODO Auto-generated method stub
List<Integer> list = new ArrayList<>();
Scanner cin = new Scanner(System.in);
// String string = cin.nextLine();
String string = "43453lkj534jlj4";
Pattern pattern = Pattern.compile("[0-9]");
Matcher matcher = pattern.matcher(string);
while (matcher.find()) {
// Integer.p
list.add(Integer.parseInt(matcher.group()));
}
System.out.print(list);
QuickSort quickSort = new QuickSort();
quickSort.sort(list, 0, list.