Code example for Properties

Methods: containsKey, getProperty, put, store

0
		this.props.load(new FileInputStream(this.file));
	} 
 
	public void save() { 
		try { 
			this.props.store(new FileOutputStream(this.file), null);
		} catch (IOException localIOException) {
		} 
	} 
 
	public boolean containsKey(String var) {
		return this.props.containsKey(var);
	} 
 
	public String getProperty(String var) {
		return this.props.getProperty(var);
	} 
 
	public void removeKey(String var) {
		if (this.props.containsKey(var)) {
			this.props.remove(var);
			save(); 
		} 
	} 
 
	public boolean keyExists(String key) {
		return containsKey(key);
	} 
 
	public String getString(String key) {
		if (containsKey(key)) {
			return getProperty(key);
		} 
 
		return ""; 
	} 
 
	public String getString(String key, String value) {
		if (containsKey(key)) {
			return getProperty(key);
		} 
 
		setString(key, value);
		return value;
	} 
 
	public void setString(String key, String value) {
		this.props.put(key, value);
		save(); 
	} 
 
	public int getInt(String key) {
		if (containsKey(key)) {