> Hi All,
>
> We r developing chat application ,we need to create
> new arrayList as instructor logs into new
> session....
> so,it has to create new ArrayList dynamically for
> each session...
>
> How to do it ?
> Plz help regarding this...
How is it that you think you would create an ArrayList not dynamically?
I really don't get your question.
Go read a tutorial. Sounds like you need it.
I'm not being an @sshole to you, just experience shows us that when people ask the forum too many related questions, it means they have missed out a chunk of the learning process. It always ends the same: you'll struggle to understand every answer you get, get more and more frustrated at your slow progress, and usually eventually give up. You're far better off doing a tutorial first, and coming to the forum with specific problems, rather than just asking for step-by-step help on using, say, ArrayList. I'm really not being an @sshole, I'm trying to save you a lot of time and trouble!
> When new session starts, new arraylist need to
> create....
>
> Suppose session1 start,so ArrayList will be..
>
> Public List session_1 = new ArrayList();
>
> this i want to happen dynamically on start of new
> session,is it possible to create..
That is dynamic.
Perhaps you could try to explain what "dynamically" means to you?
So you're saying you want session1 variable for the first session, a session2 variable for the second, and so on? That it's the variables, not the ArrayLists, that you want to be dynamic?
Yeah, can't do that.
Now, if only there were some way to store multiple things in one object pointed to by one variable. Man, if only Java had the notion of, oh, I don't know what would you call it? A list of things?