Code example for TreeMap

Methods: put

0
    	String url = bookmark.getUrl();
    	if(url.endsWith("/")) {
    		url = url.substring(0, url.lastIndexOf('/'));
    	} 
    	 
    	TreeMap<String, String> params = new TreeMap<String, String>();
    	  	 
		params.put("description", bookmark.getDescription());
		params.put("extended", bookmark.getNotes());
		params.put("tags", bookmark.getTagString());
		params.put("url", bookmark.getUrl());
		 
		if(bookmark.getShared()){
			params.put("shared", "yes");
		} else params.put("shared", "no");
		 
		if(bookmark.getToRead()){
			params.put("toread", "yes");
		} 
		 
		String uri = ADD_BOOKMARKS_URI;
		InputStream responseStream = null;
 
Experience pair programming with AI  Get Codota for Java