Advertisement
Guest User

Untitled

a guest
Dec 2nd, 2016
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. import java.io.File;
  2.  
  3. public class MainForTranslator {
  4.  
  5. public static void main(String[] args) {
  6. File file = new File("Vocabulary.txt");
  7. Translator tr=new Translator();
  8. tr.loadVocabulary(file);
  9. System.out.println(tr.translate("Glad to meet with you ."));
  10.  
  11. File file2=new File("English.txt");
  12. tr.translateFromFile(file2);
  13.  
  14. tr.addToVocabulary(file, "Char-Символ");
  15. System.out.println(tr.translate("Char"));
  16. }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement