About HashTable

xiaoxiao2021-03-06  19

Recently, some netizens said that it is difficult to take out the value in the HashTable, which is invisible in Java. There is a get method. In fact, it is the same in .NET, its usage is similar to seeion. The value is as follows:

Hashtable myhash = new hashtable ();

Myhash.Add ("Key1", "Value1");

Myhash ["key1"]. TOSTRING ();

It is used in brackets to index value, and the value taken is an Object type, so it must be properly converted.

转载请注明原文地址:https://www.9cbs.com/read-44448.html

New Post(0)