setInteger abstract method
- String key,
- int value
Creates a key:value pair, where the value is of type Integer.
If the given key already exists, its value will be replaced by the new one.
-
keyThe name of the key to be created or replaced. -
valueThe value to be assigned to the key.
Implementation
void setInteger(String key, int value);