Hello.
What variable would you use if integer is too small, and long is too small. I was to hold very large numbers greater than 19 digits.
Thanks for any help.
Printable View
Hello.
What variable would you use if integer is too small, and long is too small. I was to hold very large numbers greater than 19 digits.
Thanks for any help.
You can use BigInteger class.
Quote:
Originally Posted by sunnypalsingh
Correct :thumb:
But it is better if you can explain littlebit more here. I think MathewF can confused with this.
You can find it with java.math
You can used BigInteger class for lots of constructors and methods, with different types of varible. Read this page and you can find more.
Why? Typing "java BigInteger" into Google leads me immediately to a reference of the class. Which is all the useful content of your post anyway. The "lots of constructors and methods" is perfectly meaningless.Quote:
Originally Posted by eranga262154
Correct :thumb:Quote:
Originally Posted by CornedBee
Google can leads you anywhere you want quickly. But most of the people don't know how to find something quickly. They don't know difference between "java BigInteger" and "java+BigInteger".
So what I'm trying to say is, lot of people are here to get something they want in quick time. Most of them don't like spend much time to find what they want. Isn't it?
If so, I think if we send something here it should be complete one. Isn't it? Am I wrong?
Well, I personally think people can do some work too. Otherwise, I'd have to answer all those "please write my code for me" threads.
Now, if you want to give very precise and detailed information, that's fine with me. It's your time, not mine. I was just slightly irritated by your suggestion that sunnypalsingh's answer was insufficient.
Please excuse eranga262154 for trying to be helpful. He was just expanding on what was said trying to give more information. People come here for help, and that's what he was giving. He didn't waste your time, or in any way shapre or form deserve what you said.Quote:
Originally Posted by CornedBee
Funny that you quote this part of my post and then accuse me of something completely different ...Quote:
Originally Posted by lunchboxtheman
Ok, don't you think it's enough with who is wasting who's time!
Please stop the out of topic posts guys http://img259.imageshack.us/img259/7072/dry4hz.gif
Quote:
Originally Posted by ComputerJy
Correct :thumb:
Don't worry about what others doing. Just try to do what you want for you and for others.