I have a question. I want to make a app for mind reader. First i want to give 1 to 100 number and ask the user to think in mind a number.on next i want to display 1 to 50 and two button yes,no. When click on yes it shows 1 to 25 and on no it shows 50 to 75 and so on.
Asked
Active
Viewed 53 times
-3
-
why only millions? why not billions? – pskink Mar 28 '17 at 13:26
-
3Possible duplicate of [How can I keep 1 million digit in Java?](http://stackoverflow.com/questions/37081432/how-can-i-keep-1-million-digit-in-java) – Mukesh M Mar 28 '17 at 13:37
-
See this http://stackoverflow.com/questions/37081432/how-can-i-keep-1-million-digit-in-java – Mukesh M Mar 28 '17 at 13:39
-
Please tell me in details. – Pradeep Sheoran Mar 28 '17 at 14:00
-
Please answer my question – Pradeep Sheoran Mar 30 '17 at 03:49
1 Answers
0
use Biginteger and BigDecimal instead of int and decimal
BigInteger a=new BigInteger(valueA);
BigInteger b=new BigInteger(valueB);
BigInteger c=a.multiply(b);

max
- 5,963
- 12
- 49
- 80