Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void tri()
- {
- Mediatheque transit = new Mediatheque(1);
- for(int i = 0; i < this.media.length; i++)
- {
- for(int j = i; i < this.media.length; j++)
- {
- if (!compare(this.media[i], this.media[j]))
- {
- swap(this.media[i], this.media[j]);
- }
- }
- }
- }
- public void swap(Documents alpha, Documents beta)
- {
- Mediatheque temp = new Mediatheque(1);
- temp.media[0] = alpha;
- alpha = beta;
- beta = temp.media[0];
- }
Add Comment
Please, Sign In to add comment