Extracting integers from strings in java is too inefficient to compare strings one by one, so you need to use regular expressions for matching, as shown in the following code:
String? str? =? "Amount: 88,687,594 yuan";
Pattern? p? =? Pattern.compile("\\d+(,\ \ d { 3 })*);