Changed output from array to println();