NotCachaaaaaaaaaa

Untitled

Mar 4th, 2020
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. public List<String> iplist(){
  2. List<String> iplist = new ArrayList<>();
  3. try {
  4. //AL LINK NORMAL DEL PASTEBIN, DESPUES DEL .COM/ PON RAW/ Y EL CODIGO QUE TE DA PASTE BIN, AHI ABAJO ESTA EL EJEMPLO
  5. URL url = new URL("https://pastebin.com/raw/N7WA6yx5");
  6. BufferedReader in = new BufferedReader(new InputStreamReader(url.openStream()));
  7.  
  8. String line;
  9. while ((line = in.readLine()) != null) {
  10. iplist = Arrays.asList(line.split(","));
  11. }
  12. } catch (IOException ignored) { }
  13. return iplist;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment