Can you put variables in an array?

Vy Bùi

New member
Can you put variables in an array?
Answer
Arrays can contain any type of element value (primitive types or objects), but you can’t store different types in a single array. … Declare a variable to hold the array. Create a new array object and assign it to the array variable.
 

Tìm kiếm

Back
Top