Can we create an array of vectors in java? | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
0

Can we create an array of vectors in java?

let me give an example Vector v[]=new Vector[10]; S.o.p(v[0]); it throws null pointer exception why?

19th Jul 2017, 5:05 PM
X-D
1 Antwort
+ 2
Yep! Arrays can hold any data type, including objects.
19th Jul 2017, 5:27 PM
Keto Z
Keto Z - avatar