Thanks to all. I got it! Mike
On Thu, 2009-07-23 at 09:53 -0700, miga wrote: > > > On Jul 23, 1:21 am, Mike Adolf <[email protected]> wrote: > > The homework instructions for 1011 contains the following: > > > > Write a static method called generateNewName() as following: > > * It receives the array of String as a parameter. > > * It creates a new first name by taking the 2nd character of each > > String from the array > > > > My question is: If the first name is Christine is the new first name > > > > Cristine (second letter taken out) > > > > OR > > > > h (formed by taking the second character) > > > > Since "h" doesn't make much sense as a name, I think I'll use the first > > interpretation. > Say you have an array of strings like the following: > ["Christine", "Marie", "Claude"] > You loop over the strings, and each time you take the second character > of each string, here: > h, then a, then l > The resulting string, hence the final name, would be: > hal > > > > --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/javaprogrammingwithpassion?hl=en -~----------~----~----~----~------~----~------~--~---
