Advertisement
dasza

Untitled

Dec 4th, 2017
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. package tabliceRozproszone;
  2.  
  3. import java.io.File;
  4. import java.io.FileNotFoundException;
  5. import java.util.Scanner;
  6.  
  7. public class Main {
  8. public static void main(String[] args) {
  9.  
  10. LinearProbingFirstFunction linearProbingFirstFunction = new LinearProbingFirstFunction();
  11.  
  12. File file = new File ("slowa.txt");
  13. try {
  14. Scanner scanner = new Scanner(file);
  15. for (int i = 0; i < 5; i++) {
  16. String word = scanner.next();
  17. linearProbingFirstFunction.linearProbingForFirstFunction(word);
  18. }
  19. System.out.println(linearProbingFirstFunction.getWords());
  20.  
  21. } catch (FileNotFoundException fnfe) {
  22. fnfe.printStackTrace();
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement