从第三方图书馆得到的地址:
address wallet = rlp[5].toAddress();
想转移一些资金给它:
wallet.transfer(amount);
有错误:
TypeError: Member "transfer" not found or not visible after argument-dependent lookup in address.
wallet.transfer(amount);
^-------------^
铸不起作用:
((address payable)(wallet)).transfer(a
当我尝试添加到我的数组列表(stringer)时,出现以下错误:
error: no suitable method found for add(Fish)
stringer.add(f);
在此代码中:
public class Habitat {
ArrayList<String> stringer = new ArrayList<String>();
int[] fishArr;
public int maxCount=25;
public int minCount=9;
public int maxWeight=10;
public int