Before using our proxies, ensure that your server IP address is authorized via the proxy control panel.The Code below is a sample code for using proxies in Java code: 

import java.util.Scanner;


classProxyTest {
  public static void main(String[] args) throws Exception {
    InetSocketAddressproxyAddress = new InetSocketAddress("", 1212); // Set proxy IP/port.
    Proxy proxy = new Proxy(Proxy.Type.HTTP, proxyAddress);
    URL url = new URL("");
    URLConnectionurlConnection = url.openConnection(proxy);
    Scanner scanner = new Scanner(urlConnection.getInputStream());

Did this answer your question?