これは過去の論文からの質問です。どうすればよいかわかりません。私はこれまでこれを行ってきました。どんな助けも大歓迎です。必要なことをコメントしてから実行しようとすると、コードが混乱する可能性があります
public class NumberConvert {
public NumberConvert(int from, int to) {
}
public String convert(String input) {
if(input==null){
return "";
}else{
return "FF";//Not sure what to do here
}
}
public static Integer valueOf(String s, int radix)
throws NumberFormatException {
try {//if radix is out of range (not sure what the range is)
}catch(NumberFormatException e){
System.out.println(e.getMessage());
}
return 0;// to complete
}
public static String toString(int i, int radix) {
return "";//need to complete
}
public static void main (String[] args){
}
}