i have a class call Job
which define (jobNumber,executionTIme,priorityLevel) (eg. for constructor Job) im going to use it for priorityQueue
which is imported and used in other class call JobLine.
I have a method call compareTo()
in Job class to compare the priority between Job object.
how should implements or extends Comparable
to Job constructor so that PriorityQueue
know which to compare the priority.
help is appreciated.