-2

I wan to create a funny incremental game in java but I don't know how to store data. I thought use a long but I'm not sure that it will be enough. I know that big integer could works but I'm not sure thaht it's really efficient.

Skarwild
  • 23
  • 1
  • 7

1 Answers1

0

You might want to use long or BigInteger class, depending on how big number you want. Check out this question/answer for a valid solution!

What to do when you need to store a (very) large number?

Community
  • 1
  • 1
Ivan V
  • 2,934
  • 3
  • 23
  • 36
  • In case you notice that the question has already been answered in another post, please mark it as duplicate and provide the link to the answer. – Egor Sep 08 '15 at 08:08