Code example for Preferences

Methods: getFloat

0
	public boolean getBoolean(String key){
		return p.getBoolean(key, false);
	} 
	 
	public float getFloat(String key){
		return p.getFloat(key, -1.0f);
	} 
	 
	public double getDouble(String key){
		return p.getDouble(key, -1.0d);
	} 
 
	public byte[] getByteArray(String key){
		return p.getByteArray(key, null);
	} 
 
	public void flush() throws BackingStoreException { 
		p.flush();
	} 
 
Connect your IDE to all the code out there  Get Codota for Java