update at 2022-02-25 10:30:10 by ehlxr

This commit is contained in:
2022-02-25 10:30:10 +08:00
parent 7fa307f3a6
commit 7ffd8ac5f2
2 changed files with 26 additions and 18 deletions

View File

@@ -2,6 +2,7 @@ package me.ehlxr;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.util.HashMap;
class HelloWorld {
static {
@@ -56,11 +57,18 @@ class HelloWorld {
ls.add("ls1");
ls.add("ls2");
ls.add("ls3");
Map<String, Long> map = new HashMap<>();
map.put("k1", 1L);
map.put("k2", 2L);
map.put("k3", 3L);
HelloWorld hw = new HelloWorld();
hw.setName("Jack");
hw.no = 123434555L;
hw.age = 30;
hw.ls = ls;
hw.map = map;
System.out.println(HelloWorld.getFiled(hw));
}