code: public static void applyProxy(Proxy use) {
      System.setProperty("java.net.useSystemProxies", "false");
      System.setProperty("http.proxyHost", use.getIp());
      System.setProperty("http.proxyPort", String.valueOf(use.getPort()));
      System.setProperty("https.proxyHost", use.getIp());
      System.setProperty("https.proxyPort", String.valueOf(use.getPort()));
    }
docs: Apply Proxy
  
  @param use Proxy to use