CCB Premier Import

This commit is contained in:
Christian Cunat-Brulé
2018-07-23 10:52:48 +02:00
commit f55475a23f
765 changed files with 209793 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
package generique;
class Couple<T> {
private T x, y ; // les 2 elements du couple seront du m<>me type
public Couple (T premier, T second){
x = premier ; y = second ;
}
public T getPremier () {
return x ;
}
public void affiche () {
System.out.println ("Couple : 1ere val : " + x + " - 2e val : " + y ) ;
}
}