Click here to Skip to main content
15,884,237 members
Home / Discussions / Java
   

Java

 
QuestionArrayIndexOutOfBoundsException Pin
RcExtract30-Apr-17 19:14
RcExtract30-Apr-17 19:14 
AnswerRe: ArrayIndexOutOfBoundsException Pin
Richard MacCutchan30-Apr-17 21:06
mveRichard MacCutchan30-Apr-17 21:06 
QuestionBiometric Authentication Pin
Member 1315111925-Apr-17 2:51
Member 1315111925-Apr-17 2:51 
QuestionRe: Biometric Authentication Pin
Richard MacCutchan25-Apr-17 2:54
mveRichard MacCutchan25-Apr-17 2:54 
QuestionSorting in ArrayList Pin
Costea Cornea23-Apr-17 5:03
Costea Cornea23-Apr-17 5:03 
AnswerRe: Sorting in ArrayList Pin
Richard MacCutchan23-Apr-17 5:48
mveRichard MacCutchan23-Apr-17 5:48 
GeneralRe: Sorting in ArrayList Pin
Costea Cornea23-Apr-17 7:19
Costea Cornea23-Apr-17 7:19 
AnswerRe: Sorting in ArrayList Pin
Afzaal Ahmad Zeeshan23-Apr-17 7:27
professionalAfzaal Ahmad Zeeshan23-Apr-17 7:27 
Costea Cornea wrote:
So could you explain how to use the
Collections.sort[^]
?

and where to put this? inside the for loop
What Richard meant was, that you should only call the sort function on the ArrayList object of yours. Also, you have not shown the structure of your PriorityNote object, does it contain a priority field in itself, or do you assign a value on runtime? If that is a built in field there, then just call the sort function, and to even control how an object is sorted, read java - Sort ArrayList of custom Objects by property - Stack Overflow
The sh*t I complain about
It's like there ain't a cloud in the sky and it's raining out - Eminem
~! Firewall !~

GeneralRe: Sorting in ArrayList Pin
Richard MacCutchan23-Apr-17 22:00
mveRichard MacCutchan23-Apr-17 22:00 
GeneralRe: Sorting in ArrayList Pin
Costea Cornea24-Apr-17 6:40
Costea Cornea24-Apr-17 6:40 
GeneralRe: Sorting in ArrayList Pin
Richard MacCutchan24-Apr-17 6:49
mveRichard MacCutchan24-Apr-17 6:49 
Questionjava socket Pin
Member 1313896819-Apr-17 8:51
Member 1313896819-Apr-17 8:51 
AnswerRe: java socket Pin
NotPolitcallyCorrect19-Apr-17 9:57
NotPolitcallyCorrect19-Apr-17 9:57 
QuestionExecutable created using ant build Pin
Benjamin Bruno19-Apr-17 1:09
Benjamin Bruno19-Apr-17 1:09 
AnswerRe: Executable created using ant build Pin
Richard MacCutchan19-Apr-17 5:41
mveRichard MacCutchan19-Apr-17 5:41 
GeneralRe: Executable created using ant build Pin
Benjamin Bruno19-Apr-17 21:49
Benjamin Bruno19-Apr-17 21:49 
GeneralRe: Executable created using ant build Pin
Richard MacCutchan19-Apr-17 23:11
mveRichard MacCutchan19-Apr-17 23:11 
Questionhow to call poeslink to terminal java code Pin
Member 1310453911-Apr-17 21:41
Member 1310453911-Apr-17 21:41 
AnswerRe: how to call poeslink to terminal java code Pin
Richard MacCutchan11-Apr-17 22:15
mveRichard MacCutchan11-Apr-17 22:15 
Questionapriori with java please Pin
Member 1311902111-Apr-17 19:41
Member 1311902111-Apr-17 19:41 
QuestionRe: apriori with java please Pin
Richard MacCutchan11-Apr-17 21:15
mveRichard MacCutchan11-Apr-17 21:15 
JokeRe: apriori with java please Pin
Peter_in_278011-Apr-17 21:27
professionalPeter_in_278011-Apr-17 21:27 
GeneralRe: apriori with java please Pin
Richard MacCutchan11-Apr-17 21:38
mveRichard MacCutchan11-Apr-17 21:38 
GeneralRe: apriori with java please Pin
Nick_314159265419-Apr-17 7:19
Nick_314159265419-Apr-17 7:19 
GeneralRe: apriori with java please Pin
Richard MacCutchan19-Apr-17 23:03
mveRichard MacCutchan19-Apr-17 23:03 

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.