/***** @ Description: Convert the "" format to 1000 * @ Param * @ return int * @ throws */public static int getmoneyfromstring (string) {int result = 0; If (string. contains ("") {int Index = string. indexof (""); char billionstring = string. charat (index-1); Result = Result + getnumfromoldstring (billionstring) * 10000;} If (string. contains ("indexes") {int Index = string. indexof ("delimiter"); char millionstring = string. charat (index-1); Result = Result + getnumfromoldstring (millionstring) * 1000;} If (string. contains ("indexes") {int Index = string. indexof ("bytes"); char hundredstring = string. charat (index-1); Result = Result + getnumfromoldstring (hundredstring) * 100;} If (string. contains ("pick") {int Index = string. indexof ("pick"); char tenstring = string. charat (index-1); Result = Result + getnumfromoldstring (tenstring) * 10;} string [] lastnum = string. split ("pick up"); If (lastnum. length> 1) {result = Result + getnumfromoldstring (lastnum [1]. tochararray () [0]);} return result;}/***** @ description: convert an old character to a number * @ Param * @ return int * @ throws */public static int getnumfromoldstring (char ch) {Switch (CH) {Case '0': Return 0; case 'yi': return 1; Case 'er': return 2; Case 'san': return 3; Case 'si ': return 4; Case 'wo': return 5; case 'loan': return 6; Case 'login': Return 7; Case 'login': Return 8; Case 'login': Return 9;} return 0 ;}
Convert a bank's upper-case number to a pure number