没有合适的资源?快使用搜索试试~ 我知道了~
OpsIT-word-frequency
共27个文件
bin:6个
class:4个
html:3个
需积分: 5 0 下载量 67 浏览量
2021-07-02
19:54:03
上传
评论
收藏 43KB ZIP 举报
温馨提示
词频 简要 对于以下任务,请开发既是生产质量代码又经过完全单元测试的代码。 编写一个计算给定字符串中单词出现次数的解决方案。 每个单词出现的次数应该存储在一个 HashMap 中。 例如,如果传入the man in the moon的字符串,则 HashMap 将包含: “the”: 2 “man”: 1 “in”: 1 “moon”: 1 如果随后传入the man on the moon的字符串,则 HashMap 现在将包含: “the”: 4 “man”: 2 “in”: 1 “on”: 1 “moon”: 2 应验证所有输入以防止处理空字符串或空字符串——在这些情况下应抛出适当的异常。 该解决方案还应该是线程安全的,以便在并发调用时正确更新事件。 该方法 您将获得一个骨架接口解决方
资源推荐
资源详情
资源评论
收起资源包目录
OpsIT-word-frequency-master.zip (27个子文件)
OpsIT-word-frequency-master
.gradle
2.1
taskArtifacts
fileHashes.bin 20KB
cache.properties.lock 17B
taskArtifacts.bin 40KB
fileSnapshots.bin 53KB
cache.properties 30B
outputFileStates.bin 18KB
src
test
resources
log4j.xml 666B
java
com
ubs
opsit
interviews
wordfrequency
WordFrequencyTest.java 7KB
main
java
com
ubs
opsit
interviews
wordfrequency
WordFrequency.java 10KB
.nb-gradle
private
cache
OpsIT-word-frequ-d41d8cd98f00b204e9800998ecf8427e 8KB
README.md 1017B
build
test-results
TEST-com.ubs.opsit.interviews.wordfrequency.WordFrequencyTest.xml 4KB
binary
test
output.bin 2KB
output.bin.idx 69B
results.bin 403B
resources
test
log4j.xml 666B
classes
test
com
ubs
opsit
interviews
wordfrequency
WordFrequencyTest.class 6KB
main
com
ubs
opsit
interviews
wordfrequency
Interview.class 5KB
numOfData.class 803B
WordFrequency.class 321B
reports
tests
css
base-style.css 2KB
style.css 1KB
index.html 2KB
js
report.js 3KB
classes
com.ubs.opsit.interviews.wordfrequency.WordFrequencyTest.html 5KB
packages
com.ubs.opsit.interviews.wordfrequency.html 2KB
build.gradle 640B
共 27 条
- 1
资源评论
李韩资
- 粉丝: 20
- 资源: 4516
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功