Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for(int i =0; i<queue.size()-1;i++){
- for(int k=0; k<k-i;k++){
- if(((Process)queue.get(i)).getBurst() > ((Process)queue.get(i+1)).getBurst()){
- Process temp = (Process) queue.get(i);
- queue.get(i) = queue.get(i+1);
- queue.get(i+1) = temp;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement