Add Models Algo #6

Open
Abed BRIDJA wants to merge 3 commits from bridja/TD3_DEV51_Bridja_Creuzet_Hochlaf:2erbranche into master
2 changed files with 52 additions and 0 deletions
Showing only changes of commit 05a85124e0 - Show all commits

View File

@@ -0,0 +1,30 @@
public class Lettre{
private char lettre;
private boolean status = false;
public Lettre(char lettre){
this.lettre = lettre;
}
/* Status bool */
private boolean getStatus(){
return status
}
private boolean isGood(char c){
if( this.lettre == c){
this.status = true;
return true;
}
return false;
}
}

View File

@@ -0,0 +1,22 @@
import java.util.*;
public class Mot {
public String mot;
public Lettre[] chaine;
public Mot(String mot){
this.mot = mot;
for(int i = 0; i< this.mot.length();i++){
this.chaine[i] = Lettre(this.mot.charAt(i))
}
}
}