我有界面
public interface MyInterface {
public void myTask (ServiceHandler.SongInfo[] songInfo);
}
我有ServiceHandler.SongInfo类
public class SongInfo {
public String wrapperType;
public String kind;
public Integer artistId;
public Integer collectionId
//etc
}
我有贬值
public class MainActivity extends AppCompatActivity implements MyInterface {
//... Everything else
@Override
void myTask(SongInfo[] songInfo){
}
}
但除非我在界面中注释掉这一行,否则我会收到错误
public interface MyInterface {
//public void myTask (ServiceHandler.SongInfo[] songInfo);
}
这是什么意思?
答案 0 :(得分:0)
在实施参数
中将songInfo[]
更改为ServiceHandler.SongInfo[]