Re: [問題] BigInteger and Array

看板java作者 (小安)時間18年前 (2007/08/08 19:04), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/4 (看更多)
※ 引述《zqpm (隨風 似影)》之銘言: : 想請問一下如果以BigInteger的方式來呼叫Array : 我有import java.math.* : 宣告方式是BigInteger[] bufferx = new BigInteger(); : 但在Compile時他跟我說cannot resolve symbol constructor BigInteger() : 後來考慮到BigInteger()的()是吃String的 : 所以宣告成BigInteger[] bufferx = new BigInteger(""); //一個空的字串 : 但會出現incompatible types的錯誤 : 所以想請問一下大家有沒有用過BigInteger的Array : 該如何宣告呢? BigInteger 的陣列宣告, 跟其它 Object 沒什麼不同 Object[] arr = new Object[ARRAY_LENGTH]; -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.114.78.239
文章代碼(AID): #16kQCWDw (java)
文章代碼(AID): #16kQCWDw (java)