Re: question
- From: Lew <lew@xxxxxxxxxxxxx>
- Date: Thu, 27 Sep 2007 09:25:08 -0400
Daniel Moyne wrote:
Now regarding you proposal which is neat though it does not allow for the
ArrayList [sic] to be used in another method of the class as actually required in
my work ; the example provided here was only meant to understand the way
the put action was working regarding the list value of the map with
different options ; of couse the Map created in sued in another method in
my work.
Since the ArrayLists (plural!) are in the Map, you retrieve them from the Map. The variable in question will not be in scope in another method anyway, so your reasoning is not applicable. It also will hold only /one/ of the Lists; how do you figure on retrieving the others?
And you haven't answered why the map is
Map <Integer, ArrayList <<String>>
instead of
Map <Integer, List <Integer>>
.. Why is it so necessary to store Strings in the List, and ArrayLists in the Map?
--
Lew
.
- Follow-Ups:
- Re: question
- From: Daniel Moyne
- Re: question
- References:
- [Map<Integer,ArrayList<String>>]question
- From: Daniel Moyne
- Re: question
- From: Peter F
- Re: question
- From: Daniel Moyne
- Re: question
- From: Peter Fourneau
- Re: question
- From: Daniel Moyne
- Re: question
- From: Lew
- Re: question
- From: Daniel Moyne
- [Map<Integer,ArrayList<String>>]question
- Prev by Date: encrypted source file support in jdk?
- Next by Date: Re: encrypted source file support in jdk?
- Previous by thread: Re: question
- Next by thread: Re: question
- Index(es):
Relevant Pages
|