Java IdentityHashMap containsKey() methodThe containsKey(Object key) method of the Java IdentityHashMap class is used to check whether the calling IdentityHashMap contains the specified key. SyntaxParametersKey - The possible key which is to be checked in the IdentityHashMap. ReturnTrue, if the specified key is a key in the calling IdentityHashMap. Example 1Test it NowOutput: true false false true Example 2Test it NowOutput: false true true false
Next Topicjava IdentityHashMap
|