From: Dave Aronson Date: 2011-10-04T19:59:40+09:00 Subject: Re: Noob alert, please help loops and arrays and string methods On Tue, Oct 4, 2011 at 05:41, Sathya Levy wrote: > I have a very simple assignment of creating a method to capitalize the > first letter in all words of any given sentence ... > I have no idea how to use a > loop to add a string method .capitalize to all objects of an array These are two different things. Do you need to capitalize the first letters of each word in a sentence, or *add a method* to all objects of an array? The first, Mayank showed one way how to do. (Nice and concise for us seasoned programmers, though maybe not very n00b-readable.) The second, seems like a rather advanced task for a self-proclaimed n00b.... -Dave -- LOOKING FOR WORK, preferably Ruby on Rails, in NoVa/DC; see main web site. Main Web Site: davearonson.com Programming Blog: codosaur.us Excellence Blog: dare2xl.com