这是过去论文中的一个问题,我不确定该怎么做。到目前为止我已经这样做了,任何帮助表示赞赏。当我尝试评论我需要做的事情然后尝试去做时,我的代码可能会令人困惑
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){
}
}