List<String> in java to List in javascript
<p>I have a java code that I want to change to javascript to add script in my html file. The fundamentals of my java code is to print out list of API names</p>

<pre><code>public List&lt;String&gt; getApiNames() throws IOException{
    String url = "https:give me api / // ";

    HttpClient httpClient = new HttpClient(5,10000);

    Response response = httpClient.callGetRequest(url, null, null); 

    String webPage = response.getResponseBody();

    ObjectMapper mapper = new ObjectMapper(); 
    mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
    Map&lt;String, Api&gt; apis = mapper.readValue(webPage, new TypeReference&lt;HashMap&lt;String, Api&gt;&gt;(){});
    List&lt;String&gt; list = new ArrayList&lt;String&gt;(apis.keySet());
    return list;
}
</code></pre>

<p>and I want to add to my html that is formatted like this,
<a href="http://i.stack.imgur.com/54Ih1.png" rel="nofollow">list format</a></p>

<p>Is there anyway I can add the java code I have to html file?</p>