When I try to print variable b
in this method, I face an error.
(当我尝试使用此方法打印变量b
时,遇到错误。)
I didn't initialize the variable b
as an array
, why this is happening? (我没有将变量b
初始化为array
,为什么会发生这种情况?)
public void print(int[] data){
int b = 2;
print(b);
}
This is the error I get : incompatible data type : int cannot be converted to int[]
(这是我得到的错误: 不兼容的数据类型:int无法转换为int [])
ask by ??? translate from so 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…