Re: Java Arrays.sort throws exception
Andrea Francia wrote:
captain wrote:
Roedy,
Thank you very much for your response.
My code:
List adminItems = new ArrayList();
loop:
adminItems.add(administeredItem);
Collections.sort(adminItems);
You don't need to post the library code.
You didn't post yet enough information however.
The code is not a SSCCE (is not compilable).
Where administeredItem is defined?
Why you did not post the loop part?
It's impossible help you if you don't post a code which is compilable.
And it's impossible to help you if the code does not reflect your code
enviroment.
Please read the http://sscce.org and post a SSCEE.
You should also post the Exception stack trace.
Please read in http://mindprod.com/jgloss/newsgroups.html the section
How To Get Newsgroup Responses
Even without its use for communicating with the newsgroup, building an
SSCCE would be a good strategy for this type of problem. The library
sort code is very well tested and widely used, so it is almost certainly
not the problem.
The very fact that you are stuck suggests that the problem is somewhere
you are not looking. In the process of building the SSCCE you will
probably find that removing or simplifying some aspect of your program
makes the problem go away.
Patricia