Storing Date and Sorting Lists
I've got an odd issue regarding date and I have no idea why.
Ok so I'm importing
And here's what I get output...
Date tempDate = new Date(22,02, 1990);
Where exactly am I going wrong? I just need the day, month and year stored.
Not sure on the versions of Java and what not. I'm getting a deprecation error that I am suppressing.
Now onto my List sorting issue.
Basically my list is displayed and will be sorted based on the priority variable stored in the class.
I was going to loop through the list and add the notes based on priority so something like
if prio == 0
if prio == 1
Is there a better way to do this? 0 is high, 1 is medium, 2 is low.
Now when this is sorted, the index's of my array / list will not be the same as those from my jList. How am I to actually find the index of the selected item relative to my array?
Thanks for the help.