RESPUESTA
public
class Interfaz {
public double freq = 80;
private static final double step = 0.5;
private static final double min = 80;
private static final double max = 108;
public void up (){
if(freq+step>max)
freq = min;
else freq += step;
}
public void down (){
if(freq-step
freq = max;
else freq -= step;
}
public double display (){
return freq;
}
}
No hay comentarios:
Publicar un comentario