0

Need a data type which can store (9999999999999999 ) seventeen int numbers?

I need a code to generate from 0000000000000001 to 999999999999999 and then save it and that must be possible to search a number from this set. Example: 1234567891234567

16th Sep 2020, 2:21 PM
Shamsulhaq Alkozay
Shamsulhaq Alkozay - avatar
5 Answers
+ 3
Shamsulhaq alkozay Don't ask for readymade codes! Firstly show your attempt then surely we will help you✌ Follow our community guidelines - https://www.sololearn.com/Discuss/1316935/?ref=app Hope you understand 👍
16th Sep 2020, 2:23 PM
Piyush
Piyush - avatar
+ 1
If ( i < 9999999999999999; i= 0000000000000001; i++) { System.out.println (i); }
16th Sep 2020, 2:25 PM
Shamsulhaq Alkozay
Shamsulhaq Alkozay - avatar
+ 1
java long[] can store 19 digits numbers max 9223372036854775807
16th Sep 2020, 9:39 PM
zemiak
0
That's right but before saving the number I will filter them and then Save them
16th Sep 2020, 2:46 PM
Shamsulhaq Alkozay
Shamsulhaq Alkozay - avatar
0
I could generate them but saving and searching numbers are challenging
16th Sep 2020, 2:47 PM
Shamsulhaq Alkozay
Shamsulhaq Alkozay - avatar