Click here to Skip to main content
15,914,014 members
Home / Discussions / Java
   

Java

 
GeneralRe: H2 database (SQL) syntax error Pin
Ashford Tulgaa14-May-17 22:04
Ashford Tulgaa14-May-17 22:04 
AnswerRe: H2 database (SQL) syntax error Pin
Jochen Arndt14-May-17 23:12
professionalJochen Arndt14-May-17 23:12 
GeneralRe: H2 database (SQL) syntax error Pin
Ashford Tulgaa14-May-17 23:14
Ashford Tulgaa14-May-17 23:14 
SuggestionRe: H2 database (SQL) syntax error Pin
Richard Deeming15-May-17 8:01
mveRichard Deeming15-May-17 8:01 
GeneralRe: H2 database (SQL) syntax error Pin
Richard MacCutchan15-May-17 20:49
mveRichard MacCutchan15-May-17 20:49 
AnswerRe: H2 database (SQL) syntax error Pin
Patrice T21-May-17 12:34
mvePatrice T21-May-17 12:34 
QuestionHelp me with CreateProcess error=216 and Gradle error in Android at fist build Pin
Cao Khả Tú11-May-17 20:45
Cao Khả Tú11-May-17 20:45 
AnswerRe: Help me with CreateProcess error=216 and Gradle error in Android at fist build Pin
Richard MacCutchan12-May-17 3:11
mveRichard MacCutchan12-May-17 3:11 
GeneralRe: Help me with CreateProcess error=216 and Gradle error in Android at fist build Pin
wseng21-May-17 21:49
wseng21-May-17 21:49 
QuestionHow do we make responsive software??? Pin
Member 1319306610-May-17 20:07
Member 1319306610-May-17 20:07 
AnswerRe: How do we make responsive software??? Pin
Richard MacCutchan10-May-17 23:45
mveRichard MacCutchan10-May-17 23:45 
QuestionI need help with a Java program !! Pin
Member 131899649-May-17 9:54
Member 131899649-May-17 9:54 
AnswerRe: I need help with a Java program !! Pin
Richard MacCutchan10-May-17 23:46
mveRichard MacCutchan10-May-17 23:46 
AnswerRe: I need help with a Java program !! Pin
Patrice T21-May-17 12:37
mvePatrice T21-May-17 12:37 
Questionextracting the commented line java when reading the file Pin
Member 131753735-May-17 5:26
Member 131753735-May-17 5:26 
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 

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.