But I get a HOLE lot of nils, can anyone tell me what the f... I am doing wrong?
@largeLetters = Array.new(26)
@largeLetters.push("A", "B", "C", "D",
"E", "F", "G", "H",
"I", "J", "K", "L",
"M", "N", "O", "P",
"Q", "R", "S", "T",
"U", "V", "W", "X",
"Y", "Z")
puts "Large Array"
@largeLetters.each{
|item| print item, "\n"
}
but my output:
56347d1b:EncryptText tools$ ruby App.rb Large Array nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
- Thanks in advance

New Topic/Question
Reply


MultiQuote





|