develog

[Java] Map inline put 본문

Dev/Java

[Java] Map inline put

냐옴 2014. 11. 19. 16:44

Map<String, String> map = new HashMap<String, String>() {{

    put("GD", "11");

    put("NM", "aa");

}};

'Dev > Java' 카테고리의 다른 글

[Java] 음력  (0) 2014.11.19
[Java] List inline add  (0) 2014.11.19
[Java] Spring @Transactional explained  (0) 2014.10.07
[Java] @Transactional, tx:advice MIX  (0) 2014.10.07
[Java] Generics  (0) 2014.10.06
Comments