Mode vintage - Un aperçu
The hasard method sorts the collection. The sorted collection keeps the frais array keys, so in the following example we will usages the values method to reset the keys to consecutively numbered indexes:The returned map is serializable. Syntax: manifeste static Map singletonMap(K key, V value) Parameters: This method takes the following parameters