title: Calling Rest API in java from Hackerrank IDE
body: <p>I was trying to call an api like below. It works in my IDE(Intellij), where as it fails in hackerrank IDE while getting input stream.</p>
  <pre><code>import java.io.*;
  import java.util.*;
  import java.net.*;
      
  URL url = new URL(&quot;https://jsonmock.hackerrank.com/api/article_users?page=1&quot;);  
  HttpURLConnection connection = (HttpURLConnection)url.openConnection();
  connection.setRequestMethod(&quot;GET&quot;);  
  connection.addRequestProperty(&quot;Content-Type&quot;, &quot;application/json&quot;); 
  InputStream is = connection.getInputStream();    
         
  </code></pre>
  <p>Getting an error:</p>
  <pre><code>error while calling: java.net.UnknownHostException: jsonmock.hackerrank.com  
  </code></pre>
  <p>inside hacker rank IDE.</p>
  <p>Please let me know your suggestions</p>