x修改功能

main
zxh 1 month ago
parent 0018355828
commit 67f9d0538d

@ -5,7 +5,14 @@ import java.util.Scanner;
public class BaseConverter {
/**
*
*
* @param numStr
* @param fromBase
* @param toBase
* @return
*/
public static String convertBase(String numStr, int fromBase, int toBase) {
// 验证进制是否合法
if (fromBase < 2 || fromBase > 16 || toBase < 2 || toBase > 16) {

Loading…
Cancel
Save