Can a Hashtable hold multiple datatypes for keys and values? | Selenium Forum
M
Posted on 31/07/2016
In QTP we have a dictionary object which can have even numbers as key values. Just like that is it possible to assign an integer to a key value in Hashtable?

PFB the example:

Hashtable<int [],String> table = new Hashtable<int [],String>();

table.put(0, "John");
table.put(1, "tokyo");
table.put(2, "Stewart");

I am getting the below error. Could anyone please help me on this?

The method put(int[], String) in the type Hashtable<int[],String> is not applicable for the arguments (String, String)

M
Replied on 31/07/2016

send the entire code and i'll try and run it.