0

How to create array without defining Size (free size ) ?

14th Feb 2018, 7:22 AM
Prashant Kumar
Prashant Kumar - avatar
7 Answers
+ 2
then use lists
14th Feb 2018, 7:53 AM
Dejan FrancuzđŸ„‡
Dejan FrancuzđŸ„‡ - avatar
+ 1
without for loop any opinions ti know how many size is filled of array ?
14th Feb 2018, 7:50 AM
Prashant Kumar
Prashant Kumar - avatar
0
eg. int[] array1 = {1,2,3,4,5,6};
14th Feb 2018, 7:29 AM
Dejan FrancuzđŸ„‡
Dejan FrancuzđŸ„‡ - avatar
0
but how I will get input from user in it ?
14th Feb 2018, 7:43 AM
Prashant Kumar
Prashant Kumar - avatar
0
use scanner and for loop
14th Feb 2018, 7:44 AM
Dejan FrancuzđŸ„‡
Dejan FrancuzđŸ„‡ - avatar