Code example for Preferences

Methods: getFloat

0
        prefs.putFloat("angle",getAngle());
    } 
 
    @Override 
    public void loadFromStudioConfig(Preferences prefs) {
        setRadius(prefs.getFloat("radius", getRadius()));
        setAngle(prefs.getFloat("angle", getAngle()));
    } 
 
    /** 
     * @return the radius 
     */ 
    public float getRadius() { 
        return radius;
    } 
 
    /** 
     * @param radius the radius to set 
     */ 
    public void setRadius(float radius) {
Stop searching for code, let great code find you!  Add Codota to your java IDE