import java util stream IntStream public class Factorial public static

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import java.util.stream.IntStream;
public class Factorial {
public static void main (String[] args) {
Box bigbox = new Box(10, 20, 5);
bigbox.width=100;
System.out.print (bigbox.width);
}
}
class Box {
int width;
int height;
int depth;
public Box (int w, int h, int d) //**********
{
this.width = w;
this.height = h;
this.depth = d;
} //***********
public int getVolume() {
return width * height * depth;
}
}