Click here to Skip to main content
15,903,012 members
Home / Discussions / Java
   

Java

 
Questionhhow to catch value from java servlet Pin
swapnil669-Feb-12 16:35
swapnil669-Feb-12 16:35 
AnswerRe: hhow to catch value from java servlet Pin
TorstenH.9-Feb-12 20:36
TorstenH.9-Feb-12 20:36 
Questioniterator previous() add() Pin
prithaa9-Feb-12 2:14
prithaa9-Feb-12 2:14 
AnswerRe: iterator previous() add() Pin
TorstenH.9-Feb-12 2:33
TorstenH.9-Feb-12 2:33 
GeneralRe: iterator previous() add() Pin
prithaa9-Feb-12 17:34
prithaa9-Feb-12 17:34 
GeneralRe: iterator previous() add() Pin
TorstenH.9-Feb-12 20:32
TorstenH.9-Feb-12 20:32 
GeneralRe: iterator previous() add() Pin
prithaa9-Feb-12 21:41
prithaa9-Feb-12 21:41 
GeneralRe: iterator previous() add() Pin
David Skelly9-Feb-12 22:29
David Skelly9-Feb-12 22:29 
TorstenH. wrote:
A List is not a ordered thing.


Yes, it is. This is how the javadoc for java.util.List defines a List:

An ordered collection (also known as a sequence). 


The fact that a List is ordered is what distinguishes it from other collection types such as a Bag (although Java does not actually have a Bag type out of the box).

I ran a little test to repeat the OP's example using ArrayList and it worked perfectly, exactly as expected, no exception thrown. So I think you are right, there is something else going on here, probably to do with threads - that's typically where you see ConcurrentModification, where one thread is reading the list and another thread is updating it.
GeneralRe: iterator previous() add() Pin
TorstenH.9-Feb-12 23:41
TorstenH.9-Feb-12 23:41 
GeneralRe: iterator previous() add() Pin
BobJanova10-Feb-12 0:29
BobJanova10-Feb-12 0:29 
GeneralRe: iterator previous() add() Pin
TorstenH.12-Feb-12 21:20
TorstenH.12-Feb-12 21:20 
GeneralRe: iterator previous() add() Pin
David Skelly10-Feb-12 3:43
David Skelly10-Feb-12 3:43 
GeneralRe: iterator previous() add() Pin
TorstenH.12-Feb-12 21:18
TorstenH.12-Feb-12 21:18 
GeneralRe: iterator previous() add() Pin
David Skelly12-Feb-12 22:32
David Skelly12-Feb-12 22:32 
GeneralRe: iterator previous() add() Pin
TorstenH.13-Feb-12 4:14
TorstenH.13-Feb-12 4:14 
GeneralRe: iterator previous() add() Pin
David Skelly19-Feb-12 22:20
David Skelly19-Feb-12 22:20 
QuestionHELP Pin
reemamjd8-Feb-12 19:02
reemamjd8-Feb-12 19:02 
AnswerRe: HELP Pin
thatraja8-Feb-12 21:03
professionalthatraja8-Feb-12 21:03 
QuestionEJB Pin
V.7-Feb-12 22:21
professionalV.7-Feb-12 22:21 
AnswerRe: EJB Pin
Richard MacCutchan7-Feb-12 22:42
mveRichard MacCutchan7-Feb-12 22:42 
GeneralRe: EJB Pin
V.7-Feb-12 22:56
professionalV.7-Feb-12 22:56 
GeneralRe: EJB Pin
V.9-Feb-12 1:32
professionalV.9-Feb-12 1:32 
Questionabout java Pin
Sheetesh Kumar Dubey7-Feb-12 3:26
Sheetesh Kumar Dubey7-Feb-12 3:26 
AnswerRe: about java Pin
Richard MacCutchan7-Feb-12 4:55
mveRichard MacCutchan7-Feb-12 4:55 
AnswerRe: about java Pin
TorstenH.7-Feb-12 20:22
TorstenH.7-Feb-12 20:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.