selection decision

hi,

ive got this problem , i have to design a small code that automatic decides which user to assign a task to. for now i have in mind is just select the person who is handling the least case e.g

user1 handling 10 case

user2 handling 5 case

the system will select user2 to handle new cases. is there any more addition of options to include in which user to select? for e.g priorities

clarence

[430 byte] By [clarenceloha] at [2007-11-27 2:36:07]
# 1
Have a look at the PriorityQueue class: http://java.sun.com/j2se/1.5.0/docs/api/java/util/PriorityQueue.html
prometheuzza at 2007-7-12 2:55:05 > top of Java-index,Java Essentials,Java Programming...
# 2
is this priority queue the best solution for this problem? cos from what i read the queue is not from the database right? the data above that i mention will be stored in a database.if im mistaken pls correct me. thanksclarence
clarenceloha at 2007-7-12 2:55:05 > top of Java-index,Java Essentials,Java Programming...