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 Réponses
+ 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