我得到了一個接收型long一個parameher方法,我嘗試把它傳遞1: contato.setId(1);
我收到此: The method setId(Long) in the type Contato is not applicable for the arguments (int).
但是,是不是1長數以及?是不是裏面長範圍 ?? PS:剛纔說了,我解決了這個代碼的問題: Inte
多個原始參數,掌握方法說我有以下方法: public void doSomethingInteger(int i){...}
public void doSomethingByte(byte b){...}
public void doSomethingFloat(float f){...}
public void doSomethingDouble(double d){...}
他們都
我必須創建一個包裝類來保存任何原始數據類型。我創建了這個類,它除了布爾類型以外都適用於所有其他類型。這是我的代碼: byte a; // the byte in primitive
short b; // the short
int c, j; // int c is is int, j is the counter for Primitive to tell what dataType it