Difficulty with BigInteger

前端 未结 4 1974
北海茫月
北海茫月 2021-01-15 05:18

I am trying to do Factorial with Recursion and BigIntegers but eclipse is complaining about the BigInteger. I know the program is supposed to be simple but it is giving me h

4条回答
  •  生来不讨喜
    2021-01-15 06:03

    Java doesn't support operator overloading. So + and == can't be supported for user-defined classes with one exception that java.lang.String supports +.

提交回复
热议问题