public class box { public float ancho=5; public float largo=10; public float altura=8; public float volumen; public static void main(String[] args) { box cal = new box(); cal.calcular_volumen(); } public void calcular_volumen() { volumen = ancho*largo*altura; System.out.println("El volumen es: "+volumen); } }