java.lang.Void vs void vs Null
和 之间到底有什么区别,我可以改用吗?Void
void
null
我问这是因为我正在查看示例Android代码,他们使用了Void,但Eclipse错误(它说)。Void cannot be resolved to a variable
我的代码中断是
public class MyAsyncTask extends AsyncTask<Void, Void, Boolean>{
...
}
我这样使用它
MyAsyncTask myAsyncTask = new MyAsyncTask();
myAsyncTask.execute((Void),null);//this is the line that breaks "Void cannot be resolved to a variable"