To access an element of an array you simply mention the name of the array from which you want to access an element followed by () in which the index of the element will be inserted.
xxxxxxxxxx
val intArray = Array(17, 34, 23, 6, 50)
val elem = intArray(3)
println(elem)