@@ -0,0 +1,793 @@
+package findclass;%0A%0Aimport org.junit.Test;%0A%0Aimport java.io.*;%0Aimport java.net.URL;%0A%0A/**%0A * Created by Linuxea on 2017-08-19.%0A */%0Apublic class FindClass %7B%0A%0A    @Test%0A    public void test1()%7B%0A        URL url =%0A                this.getClass().getClassLoader().getResource(%22algorithm/easy%22);%0A        System.out.println(url.getFile());%0A    %7D%0A%0A    @Test%0A    public void test2() throws IOException %7B%0A        try(InputStream inputStream =%0A                    this.getClass().getClassLoader().getResourceAsStream(%22algorithm/eas/.Lottery%22);%0A            BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(inputStream)))%7B%0A            String str;%0A            while (null != (str = bufferedReader.readLine()))%7B%0A                System.out.println(str);%0A            %7D%0A        %7D%0A    %7D%0A%0A%7D%0A

add a class test classloader