[問題] BigInteger and Array
想請問一下如果以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
該如何宣告呢?
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.117.181.31
討論串 (同標題文章)
以下文章回應了本文 (最舊先):
完整討論串 (本文為第 1 之 4 篇):