InputStream in = getClass().getResource("words.txt").openStream();
InputStream in = getClass().getResourceAsStream("words.txt");
    private Object[] getTestData() throws IOException {        InputStream in = getClass().getResource("words.txt").openStream();        BufferedReader r = new BufferedReader(new InputStreamReader(in));        List list = new ArrayList();        String line;        int c = 0;        while ((line = r.readLine()) != null) {            list.add(line);            if (c++ == 20) break;        }        return list.toArray();    }