tree and classes ok ! :D
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
package comparable;
|
||||
package TD9.comparable;
|
||||
|
||||
public class ComparetoDepNom /*implements comparator<Personne>*/ {
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
package comparable;
|
||||
package TD9.comparable;
|
||||
|
||||
public class Enseignant extends Personne{
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
package comparable;
|
||||
package TD9.comparable;
|
||||
|
||||
public class Etudiant extends Personne{
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
package comparable;
|
||||
package TD9.comparable;
|
||||
|
||||
public abstract class Personne implements Comparable<Personne>{
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
package comparable;
|
||||
package TD9.comparable;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
package pokemon;
|
||||
package TD9.pokemon;
|
||||
|
||||
import java.util.*;
|
||||
import java.lang.Math;
|
||||
|
@ -1,4 +1,4 @@
|
||||
package pokemon;
|
||||
package TD9.pokemon;
|
||||
|
||||
public abstract class Pokemon implements Comparable<Pokemon> {
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
package pokemon;
|
||||
package TD9.pokemon;
|
||||
|
||||
public class PokemonEAU extends Pokemon{
|
||||
private int nb_nageoires;
|
||||
|
@ -1,4 +1,4 @@
|
||||
package pokemon;
|
||||
package TD9.pokemon;
|
||||
|
||||
public class PokemonELECTRIK extends Pokemon {
|
||||
private int nb_pattes;
|
||||
|
@ -1,4 +1,4 @@
|
||||
package pokemon;
|
||||
package TD9.pokemon;
|
||||
|
||||
public class PokemonFEU extends Pokemon {
|
||||
private int nb_pattes;
|
||||
|
@ -1,4 +1,4 @@
|
||||
package pokemon;
|
||||
package TD9.pokemon;
|
||||
|
||||
public class PokemonPLANTE extends Pokemon{
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
package pokemon;
|
||||
package TD9.pokemon;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
package pokemon;
|
||||
package TD9.pokemon;
|
||||
|
||||
enum Type {
|
||||
|
||||
|
Reference in New Issue
Block a user