Advertisement
Guest User

Untitled

a guest
Jun 25th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.28 KB | None | 0 0
  1.             for(int i =0; i<queue.size()-1;i++){
  2.                  for(int k=0; k<k-i;k++){
  3.                     if(((Process)queue.get(i)).getBurst() > ((Process)queue.get(i+1)).getBurst()){
  4.                         Process temp = (Process) queue.get(i);
  5.                         queue.get(i) = queue.get(i+1);
  6.                         queue.get(i+1) = temp;
  7.                     }
  8.                  }
  9.             }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement