Click here to Skip to main content
15,900,511 members
Home / Discussions / Java
   

Java

 
GeneralRe: iterator previous() add() Pin
David Skelly9-Feb-12 22:29
David Skelly9-Feb-12 22:29 
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 
no, that is your thought.

One has a List of complex Objects(e.g. cars)
A new Object should be added to the List. Position refers to an specified argument of the Objects (e.g. power of car).
It is easier to add the object to the end of the List and then to sort the List with a simple, fixed Comparator.

I don't know what you are coding, but I have seldom simple types in my Collections.
regards Torsten
When I'm not working

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 
Questionset database value to java script var on Js file Pin
swapnil666-Feb-12 1:48
swapnil666-Feb-12 1:48 
AnswerRe: set database value to java script var on Js file Pin
David Skelly6-Feb-12 22:12
David Skelly6-Feb-12 22:12 
QuestionRe: set database value to java script var on Js file Pin
swapnil667-Feb-12 22:53
swapnil667-Feb-12 22:53 
QuestionHow to manipulate voice information??????? Pin
Member 86168852-Feb-12 10:28
Member 86168852-Feb-12 10:28 
AnswerRe: How to manipulate voice information??????? Pin
gebri2-Feb-12 21:32
gebri2-Feb-12 21:32 
Questionprint a report sourced by html page Pin
ceyhunerdil1-Feb-12 21:40
ceyhunerdil1-Feb-12 21:40 
AnswerRe: print a report sourced by html page Pin
David Skelly1-Feb-12 22:04
David Skelly1-Feb-12 22:04 

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.