I am experimenting with arrays, and am reading the book \"Beginning Ruby on Rails\" by Steve Holzner. I made the program:
array = [\'Hello\', \'there\', 1, 2
array2[1] is 6, which is a Fixnum. It doesn't know how to add itself to a string (which in this case is Banana. If you were to convert it to a string, it would work just fine.
array2[1]
6
Banana
puts array2[0] + " " + array2[1].to_s