--- On Tue, 9/16/08, tREXX - <[EMAIL PROTECTED]> wrote:
> class VerySimpleAction extends ActionSupport {
> private Map<Integer, Float> amount;
> public String execute() throws Exception {
> System.out.println(amount.get(10));
> System.out.println(amount.get(20));
> }
> /* ??? */
> }
>
> What code do i have to write in place of the question
> marks, so that system.out will write "33.3" and "66.6"?
public Map<Integer, Float> getAmount() { return amount; }
(You might need to create a Map instance; not sure if it'll create it for you
in this case or not without a conversion properties file.)
Dave
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]