The outer type (MutableList in MutableList<String>) can also be marked with ?
to indicate that it could be null. So, we have a few combinations:
MutableList<String?>is a list of possibly-nullstringsMutableList<String>?is a possibly-nulllist of stringsMutableList<String?>?is a possibly-nulllist of possibly-nullstrings
You can learn more about this in:
Tags: