How to input double values on array? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

How to input double values on array?

Sorry for my bad english; i can't input double values in my array[] only int values. Can help me anyone?

23rd Mar 2019, 8:15 PM
Christian Gabriel Lopez Melo
Christian Gabriel Lopez Melo - avatar
2 Respostas
+ 1
you need to set the data type of the array as double. something like : double[] array = new double[array_size];
23rd Mar 2019, 8:37 PM
Bahhaāµ£
Bahhaāµ£ - avatar
+ 1
Ok, trying this!
23rd Mar 2019, 8:51 PM
Christian Gabriel Lopez Melo
Christian Gabriel Lopez Melo - avatar