Commit abc9a5be authored by Romain's avatar Romain

update

parent d819f5ea
Pipeline #423 canceled with stages
......@@ -9,12 +9,16 @@ import java.util.Scanner;
public class AssessmentPartFour {
List<String> morseCode = new ArrayList<String>();
public int loadMorseFromFile(String filename) {
int number=0;
try (Scanner scanner = new Scanner(new File(filename))) {
int number=0;
List<String> morseCode = new ArrayList<String>();
try (Scanner scanner = new Scanner(new File(filename))) {
// On boucle sur chaque champ détecté.
number=0;
while (scanner.hasNextLine()) {
String line = scanner.nextLine();
System.out.println(line);
......@@ -22,18 +26,22 @@ public class AssessmentPartFour {
// Faites ici votre traitement.
System.out.println(morseCode.size());
number=morseCode.size();
}
} catch (FileNotFoundException ex) {
System.out.println("Erreur --" + ex.toString());
}
return number;
return number;
}
public String translateMorse()
{
return "";
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment