0
How to take a 35 to 40 digit number in java?
5 Answers
+ 4
0_0 MĂ€gĂĄr SĂĄm ĂkĂ NĂŒllpÞïntĂȘr ĂxĂ«cĂ©ptïön I think you did not understand the question well. He is asking to input a number with 35 to 40 digits in it and not the range 35 to 40.
shivam prakash go through this, just like ~ swim ~ mentioned in his comment.
https://docs.oracle.com/javase/8/docs/api/java/math/BigInteger.html
+ 4
Sorry, i didn't read questions properly at all my mistake as well as no proper description in question.
+ 3
shivam prakash please fill the description, don't let it empty or explain your question more perfectly.
0
There are, for example, the BigInteger (and BigDecimal) class.
And sometimes it is possible to store a number as a string-it depends on the situation.