public class ExpensiveCompute**<String,Integer>** implements ComputerInterface<String,Integer> {
@Override
public Integer compute(String arg) throws Exception {
Thread.sleep(2000);
return Integer.valueOf(arg);//
}
}
老师我在这里ExpensiveCompute**<String,Integer>**加了<String,Integer> 为什么 return Integer.valueOf(arg); valueOf会报红?