Any help with this hash table questions Please and thanks The method containskey
ID: 3717427 • Letter: A
Question
Any help with this hash table questions
Please and thanks
The method containskeys(Obiect) can be used to see if a particutar key is in yeur hash table. Select one of the keys in your hash table and use the method to return a true or false as to whether or not the key is in the table. Take note of 4. parameter is used for the key in the hash table. What key what was the return value? did you search and what 5. The method entrySet(Object) can be used to return all the values in your hash table. Use this method to print out the values in your hash table. What values does this method return? your hash table. Select one of the values in your hash table and use the method to return a true or false as to whether or not the key is in the table. Take note of what parameter is used for the value in the hash table. What value did you search and 6. The meth od containsValue(Object) can be used to see if a particular value is in what was the return value?Explanation / Answer
These methods are related to Java language.
Containskeys(object):
This method is used to check whether a particular key is present in the hash table or not. So it's syntax is:
public Boolean containsKey(object value)
Object value: It is the key which is to be checked in particular hash table.
This method returns true if that key maps to one or more values of hash table.
entryset():
This method returns all the key value pairs present in hash table.
Syntax: public<set.entry>entryset()
containsValue():It returns true if it maps one or more keys to a specific value.
Parameter object is the value whose presence we have to check in hash table.
This method returns true if that value exists in hash table
otherwise false.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.