ArrayList Generics
Hi,
First of all I'm new to generics so this may be a basic question. I have this:
ArrayList<Message> alMessage = hibernateFacade.getPost(new Long(postId));
Now, in theold fashioned way I would do:
for(int i = 0; i < alMessage.size(); i++){
Message m = (Message)alMessage.get(i);
//work the methods
}
The question is: is there other way to do this(more fancy)?
Thanks in advance,
Manuel Leiria

