must use arrayOfNulls<customer?>
# announcements
j
must use arrayOfNulls<customer?>
d
No
a
I got it
Copy code
database[i]?.name
But can't understant why
j
arrrayOfNulls is a bit of a code smell for something more functional than starting with an emty array
d
In general arrays are a bit of a code smell. Prefer higher level collections, such as
List
,
Set
,
Map
, etc.
Arrays are a low-level building block
a
I am still in beginner level