Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
eshiled-new
/
ne-shield-trialdrive-admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit ac786b8f
authored
Apr 16, 2022
by
杨林龙
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
添加测试用例
1 parent
905f757a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
0 deletions
src/test/java/cn/com/glsx/test/MapTestUtil.java
src/test/java/cn/com/glsx/test/MapTestUtil.java
0 → 100644
View file @
ac786b8
package
cn
.
com
.
glsx
.
test
;
import
cn.hutool.json.JSONUtil
;
import
com.google.common.collect.Maps
;
import
lombok.extern.slf4j.Slf4j
;
import
java.util.HashMap
;
/**
* @author Yanglinlong
* @date 2022/4/16 10:08
*/
@Slf4j
public
class
MapTestUtil
{
public
static
void
main
(
String
[]
args
)
{
HashMap
<
Integer
,
String
>
hashMap
=
Maps
.
newHashMap
();
hashMap
.
put
(
1
,
"yang"
);
hashMap
.
put
(
2
,
"lin"
);
hashMap
.
put
(
3
,
"long"
);
for
(
int
i
=
0
;
i
<
2
;
i
++)
{
String
s
=
hashMap
.
get
(
i
);
System
.
out
.
println
(
"s = "
+
s
);
hashMap
.
keySet
().
remove
(
i
);
}
System
.
out
.
println
(
"hashMap = "
+
JSONUtil
.
toJsonStr
(
hashMap
));
}
}
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