Java tutorial
//package com.java2s; //License from project: Apache License import java.io.UnsupportedEncodingException; import java.net.URLEncoder; public class Main { private static final String URL_HOST = "http://ec2-54-200-144-107.us-west-2.compute.amazonaws.com:3000"; public static String getQueryUrl(String word) throws UnsupportedEncodingException { return URL_HOST + "/pl?key=" + URLEncoder.encode(word, "UTF-8"); } }