Guest User

Untitled

a guest
Dec 10th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. public void tri()
  2. {
  3. Mediatheque transit = new Mediatheque(1);
  4. for(int i = 0; i < this.media.length; i++)
  5. {
  6. for(int j = i; i < this.media.length; j++)
  7. {
  8. if (!compare(this.media[i], this.media[j]))
  9. {
  10. swap(this.media[i], this.media[j]);
  11. }
  12. }
  13. }
  14.  
  15. }
  16.  
  17. public void swap(Documents alpha, Documents beta)
  18. {
  19. Mediatheque temp = new Mediatheque(1);
  20. temp.media[0] = alpha;
  21. alpha = beta;
  22. beta = temp.media[0];
  23. }
Add Comment
Please, Sign In to add comment