陈昱杉新增功能2

main
Cys 2 months ago
parent 48afbc3c64
commit 6a2d913333

@ -6,7 +6,7 @@ public class uml10_10 {
public static int toDecimal(String number, int base) { public static int toDecimal(String number, int base) {
int decimal = 0; int decimal = 0;
int power = 0; int power = 0;
//还好还好
// 从字符串的末尾开始处理 // 从字符串的末尾开始处理
for (int i = number.length() - 1; i >= 0; i--) { for (int i = number.length() - 1; i >= 0; i--) {
char digit = number.charAt(i); char digit = number.charAt(i);

Loading…
Cancel
Save