Create a new class that will contain these key and value properties, and then pass a List containing objects of this new class to your method.
Cheers
Frans
On Mon, 2 May 2005 07:45:45 -0700, vijay gopinath wrote:
> I am Testing one of my application , and i need to pass a List , to
> a function .Now as the method signature , does have a list ,
> usually in the program , a list gets passed .In order to unit test
> my code , what do i do ? But i have come up with another solution
> right now , for this issue , and seems to be fixed .
> Thank you for all answers .
> But still , can key/value pairs be repsted using lists ???? I think
> not .
>
> Thanks ,
>
> Vijay
>
> arun <ajassiar@(protected):
> can u explain wat is your purpose of doing that,
>
> -----Original Message-----
> From: A mailing list for Java(tm) 2 Platform, Enterprise Edition
> [mailto:J2EE-INTEREST@(protected)
> Sent: Monday, May 02, 2005 7:34 PM
> To: J2EE-INTEREST@(protected)
> Subject: Add key/value pair to
java.util.List in java
>
>
> Hi All,
>
> Could anyone please let me know , how I could add a key/value pair
> into a List , in java.
>
> TIA,
>
> Vijay
>
>
> __________________________________________________ Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
> ======================================================================
> ===== To unsubscribe, send email to listserv@(protected)
> include in the body of the message "signoff J2EE-INTEREST". For
> general help, send email to listserv@(protected)
> the body of the message "help".
> ======================================================================
> ===== To unsubscribe, send email to listserv@(protected)
> include in the body of the message "signoff J2EE-INTEREST". For
> general help, send email to listserv@(protected)
> the body of the message "help".
>
> __________________________________________________ Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
> ======================================================================
> ===== To unsubscribe, send email to listserv@(protected)
> include in the body of the message "signoff J2EE-INTEREST". For
> general help, send email to listserv@(protected)
> the body of the message "help".
===========================================================================
To unsubscribe, send email to listserv@(protected)
of the message "signoff J2EE-INTEREST". For general help, send email to
listserv@(protected)".