set

public abstract void set(String path, Object value)

Sets the specified path to the given value.

If value is null, the entry will be removed. Any existing entry will be replaced, regardless of what the new value is.

Some implementations may have limitations on what you may store. See their individual javadocs for details. No implementations should allow you to store Configurations or ConfigurationSections, please use createSection for that.

Parameters

path

Path of the object to set.

value

New value to set the path to.