Skip to content

Opening book details…

Can I read Sorting with Triable Interface on EtoBox?

Sorting with Triable Interface by imen gueddess is a document available to read on EtoBox.

What is Sorting with Triable Interface about?

The Triable interface defines methods for sorting objects: exchange to swap two elements, plusGrand to compare elements, and taille to get the size. The EntierTriable and Dictionnaire classes implement Triable to make arrays of integers and strings sortable. The triBulles static method in Triable uses a bubble sort algorithm to sort any Triable object. The Test class demonstrates sorting EntierTriable and Dictionnaire instances.

Author
imen gueddess
Language
EN