Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package tabliceRozproszone;
- import java.io.File;
- import java.io.FileNotFoundException;
- import java.util.Scanner;
- public class Main {
- public static void main(String[] args) {
- LinearProbingFirstFunction linearProbingFirstFunction = new LinearProbingFirstFunction();
- File file = new File ("slowa.txt");
- try {
- Scanner scanner = new Scanner(file);
- for (int i = 0; i < 5; i++) {
- String word = scanner.next();
- linearProbingFirstFunction.linearProbingForFirstFunction(word);
- }
- System.out.println(linearProbingFirstFunction.getWords());
- } catch (FileNotFoundException fnfe) {
- fnfe.printStackTrace();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement