Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
王仕雄
/
wangsx-test
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 6cb81004
authored
Oct 12, 2019
by
王仕雄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
测试
1 parent
b37012ca
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
11 deletions
khdo/src/main/java/com/bootdo/common/utils/AAA.java
khdo/src/main/java/com/bootdo/common/utils/AAA.java
View file @
6cb8100
package
com
.
bootdo
.
common
.
utils
;
import
java.util.HashMap
;
import
java.util.Map
;
public
class
AAA
{
public
static
void
main
(
String
[]
args
)
{
String
ids
=
"[380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409]"
;
String
answers
=
"[B不同意, ['C脱敏治疗','B提高免疫力','A 避免接触过敏原'], B不同意, ['卡托普利','赖诺普利片','苯磺酸氨氯地平片','珍菊降压片','氢氯噻嗪'], ['泮托拉唑','奥美拉唑','兰索拉唑','氢氧化铝片'], ['容易引发脑溢血','长期高血压导致肾衰竭','容易导致动脉粥样硬化','长期高血压导致冠心病'], ['晕车贴','晕车药','坐车前不吃东西','吸闻橘子皮预防晕车'], ['不得掰开使用','服用时不能咀嚼'], ['鼻塞','鼻痒','流涕','喷嚏','慢性荨麻疹','皮肤瘙痒','哮喘','面部红斑','过敏性结膜炎'], ['氯雷他定','扑尔敏片'], ['肥胖','吸烟','饮酒','缺乏运动','高血压病家族遗传史','老年人','怀孕的妇女','食盐摄入量大的人','饮食过于油腻的人'], ['抗酸剂','抑酸剂','粘膜保护剂'], ['厌食','营养不良','身体消瘦','肠梗阻及穿孔','智力发育障碍','荨麻疹','哮喘'], ['接触患有肠道寄生虫病的患者',]"
;
String
[]
s
=
ids
.
split
(
","
);
String
[]
s2
=
answers
.
split
(
","
);
//map打印
Map
<
String
,
Object
>
map
=
new
HashMap
<
String
,
Object
>();
map
.
put
(
"name"
,
"zhangsan"
);
map
.
put
(
"age"
,
21
);
for
(
int
i
=
0
;
i
<
20
;
i
++)
{
map
.
put
(
String
.
valueOf
(
i
),
i
+
"aa"
);
}
String
a2
=
"B不同意@|,['B提高免疫力']@|,B不同意@|,['苯磺酸氨氯地平片','珍菊降压片','氢氯噻嗪']@|,['兰索拉唑','奥美拉唑']@|,['容易导致动脉粥样硬化','长期高血压导致冠心病']@|,['坐车前不吃东西']@|,['其他','服用时不能咀嚼']@|,['鼻痒','慢性荨麻疹','喷嚏','过敏性结膜炎']@|,['康必得','氯雷他定','扑尔敏片']@|,['饮酒','缺乏运动','食盐摄入量大的人']@|,['促胃肠动力药','粘膜保护剂']@|,['身体消瘦','肠梗阻及穿孔']@|,['接触被污染的玩具','接触被污染的地板']@|,['定期服用驱虫药','瓜果蔬菜洗净吃']@|,['阿苯达唑片','其他']@|,['男性性功能障碍']@|,['海鲜','紫外线','动物皮毛']@|,['失眠','耳鸣','头晕']@|,['B降压药不能随便吃,一旦吃了就断不了','D降压药有副作用,尽量不使用降压药']@|,['B电视广告','D药店服务人员介绍','F听别人介绍']@|,['C不好,没什么效果,反而嗜睡等副作用很大 对我没"
;
System
.
out
.
println
(
map
.
toString
());
Map
<
String
,
Object
>
map2
=
new
HashMap
<
String
,
Object
>();
map2
.
put
(
"ss"
,
map
.
toString
());
System
.
out
.
println
(
map2
.
get
(
"ss"
));
System
.
out
.
println
(
"13"
.
hashCode
());
System
.
out
.
println
(
"14"
.
hashCode
());
String
[]
a22
=
a2
.
split
(
"[@][|],"
);
int
hash
=
0
;
char
value
[]
=
{
'1'
,
'4'
};
int
h
=
hash
;
if
(
h
==
0
&&
value
.
length
>
0
)
{
char
val
[]
=
value
;
for
(
int
i
=
0
;
i
<
value
.
length
;
i
++)
{
h
=
31
*
h
+
val
[
i
];
}
hash
=
h
;
}
System
.
out
.
println
(
h
);
char
value2
[]
=
{
'4'
,
'1'
};
int
h2
=
hash
;
if
(
h2
==
0
&&
value2
.
length
>
0
)
{
char
val
[]
=
value2
;
for
(
int
i
=
0
;
i
<
value2
.
length
;
i
++)
{
h2
=
31
*
h2
+
val
[
i
];
}
hash
=
h2
;
}
System
.
out
.
println
(
h2
);
System
.
out
.
println
(
99
);
System
.
out
.
println
(
"14"
.
hashCode
());
System
.
out
.
println
(
"41"
.
hashCode
());
}
}
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment