WordStudentApplication.java (593B)
1 package com.wimdupont; 2 3 import com.wimdupont.client.DictionaryApi; 4 import com.wimdupont.client.WordRepository; 5 import com.wimdupont.service.WordFetcher; 6 import com.wimdupont.service.WordTester; 7 8 import java.util.List; 9 10 public class WordStudentApplication { 11 12 public static void main(String[] args) { 13 List<String> words = new WordFetcher().fetch(); 14 System.out.printf("Words in csv file: %s%n", words.size()); 15 16 var wordTester = new WordTester(new WordRepository(), new DictionaryApi()); 17 wordTester.saveNew(words); 18 wordTester.startTest(words); 19 } 20 21 }