Sha*_*anu 2 java api dictionary
我正在尝试在java中创建一个离线词典,您可以在文本字段中输入单词以及该单词的含义.有谁知道可以用来制作这本词典的API?任何替代方案也将受到赞赏.
一个字典不过是一个Map.它将关键字映射到描述(或描述集合).
Map<String, String> dictionary = TreeMap<String, String>();
dictionary.put("hello", "polite greeting");
System.out.println(dictionary.get("hello"));
Run Code Online (Sandbox Code Playgroud)
一个简单的启动器正在使用属性文件并将数据加载到Properties实例中.
文件提取:
key=provides access to a value
value=maps to a key
hello=polite greeting
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
6978 次 |
| 最近记录: |