HashMap中的put()方法参数是()
A: put(value,key)
B: put(key,key)
C: put(key,value)
D: put(key,key)
A: put(value,key)
B: put(key,key)
C: put(key,value)
D: put(key,key)
C
举一反三
- put(Object key, Object value)和get(Object key)方法分别用于向Map中存入元素和取出元素。
- The key password must be ________ the key store password. A: put to B: set to C: held to D: got to
- I remember _______ the key in the box under the bed, but it’s not there! A: putting B: to put C: put D: being put
- Where could she ________ the key? I couldn't find anywhere. A: put B: have put C: has put D: had put
- Where could my son ______the key I couldn't find anywhere. A: put B: have put C: has put D: had put
内容
- 0
Benjamin was worried that he couldn’t put the key into the box.
- 1
在JSON字符串中,Object结构是( )。 A: key , value B: {key:value,key:value...} C: Key D: value
- 2
If you can’t turn the key, try () some oil in the lock. A: put B: putting C: to put D: to putting
- 3
She put the key in her pocket. A: 形状 B: 英镑 C: 口袋
- 4
以下( )方法将键 / 值对数据存放到散列映射中, 该方法同时返回键所对应的值。 A: public V put(K key,V value) B: public V get(Object key) C: public V remove(Object key) D: public int size()