Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public List<String> iplist(){
- List<String> iplist = new ArrayList<>();
- try {
- //AL LINK NORMAL DEL PASTEBIN, DESPUES DEL .COM/ PON RAW/ Y EL CODIGO QUE TE DA PASTE BIN, AHI ABAJO ESTA EL EJEMPLO
- URL url = new URL("https://pastebin.com/raw/N7WA6yx5");
- BufferedReader in = new BufferedReader(new InputStreamReader(url.openStream()));
- String line;
- while ((line = in.readLine()) != null) {
- iplist = Arrays.asList(line.split(","));
- }
- } catch (IOException ignored) { }
- return iplist;
- }
Advertisement
Add Comment
Please, Sign In to add comment