code: public static String createBingUrl(String keyword, int pageIndex) throws Exception {
          int first = pageIndex * 10 - 9;
          keyword = URLEncoder.encode(keyword, "utf-8");
          return String.format("http://cn.bing.com/search?q=%s&first=%s", keyword, first);
      }
docs: construct the Bing Search url by the search keyword and the pageIndex
  @param keyword
  @param pageIndex
  @return the constructed url
  @throws Exception