I used to find these very useful in .NET and I'm unsure of any equivalent.
Implement Key Value Pair Using Properties Class in Java The Properties class of Java collections can be used to store data into key-value pairs. The getProperty() method of the Properties class returns the value associated with the key.
HashMap is a part of Java's collection since Java 1.2. It provides the basic implementation of the Map interface of Java. It stores the data in (Key, Value) pairs, and in order to access a value, one must know its key.
There's Map.Entry<K, V>
, which represents map entries. I'm not a C# programmer, but this seems like the most similar thing to what you want.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With