⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 xmlparserrelatedsuggestionresults.java

📁 SOApprocah方法的源程序下载 基于经典的PMI-IR方法
💻 JAVA
字号:
package com.yahoo.search.xmlparser;import com.yahoo.search.RelatedSuggestionResults;import com.yahoo.xml.XmlParser;import java.util.Map;import java.util.List;public class XmlParserRelatedSuggestionResults implements RelatedSuggestionResults {    private String suggestions[];    public XmlParserRelatedSuggestionResults(Map root) {        List suggestionList = XmlParser.getList(root, "/ResultSet/Result");        if (suggestionList != null) {            suggestions = new String[suggestionList.size()];            for (int i = 0; i < suggestions.length; i++) {                suggestions[i] = XmlParser.getString((Map) suggestionList.get(i), "/value");            }        }        else {            suggestions = new String[0];        }    }    public String[] getSuggestions() {        return suggestions;    }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -