Re: Special logic for last iteration of collection

From: Mike Kienenberger (mkienen..laska.net)
Date: Wed Jan 28 2004 - 10:05:04 EST

  • Next message: Mike Kienenberger: "Re: Improvements to ClassGenerator and ant task"

    "White, Joshua A (HTSC, CASD)" <Joshua.Whit..hehartford.com> wrote:
    > I am just starting with velocity. I am trying to generate a comma
    delimited
    > list (method arguments) and would like it to appear like this:
    >
    > (item1, item2, item3)
    >
    > I can't figure out how to not add a comma if we are on the last element of
    > our list. Could someone help me out?

    Maybe it'd make sense to start a FAQ and put this question right at the top
    :)

    -Mike



    This archive was generated by hypermail 2.0.0 : Wed Jan 28 2004 - 10:04:15 EST