declare an empty array in kotlin code example Example: create empty array in kotlin val stringArray = arrayOf<String>()