"자바 HashMap.containsKey()"의 두 판 사이의 차이

(새 문서: ==개요== ;자바 HashMap .remove() <source lang='java'> HashMap<String,Object> hm = new HashMap<String,Object>(); hm.put("first", "1"); hm.put("second", "4"); System.out.println(...)
 
1번째 줄: 1번째 줄:
==개요==
==개요==
;자바 HashMap .remove()
;자바 HashMap .containsKey()


<source lang='java'>
<source lang='java'>

2017년 4월 13일 (목) 11:29 판

1 개요

자바 HashMap .containsKey()
HashMap<String,Object> hm = new HashMap<String,Object>();
hm.put("first", "1");
hm.put("second", "4");

System.out.println( hm.containsKey("first") );
System.out.println( hm.containsKey("third") );
// true
// false

2 같이 보기

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}