12.4 p 471 a) double number :
Download
Report
Transcript 12.4 p 471 a) double number :
12.4 p 471 a)
double[] number = {1.05, 2.05, 3.05, 4.05, 5.05};
number : double[]
[0]
1.05
[1]
2.05
[2]
3.05
[3]
4.05
[4]
5.05
12.4 p 471 b)
char[] initial = {'w', 'x', 'y', 'z'};
initial : char[]
[0]
'w'
[1]
'x'
[2]
'y'
[3]
'z'
12.4 p 471 c)
String[] color = {"red", "green", "blue"};
color : String[]
[0]
[1]
:String
char[] value
:String
char[] value
[2]
:String
char[] value
:char[]
'r' 'e' 'd'
:char[]
'g' 'r' 'e' 'e' 'n'
:char[]
'b' 'l' 'u' 'e'
12.4 p 471 d)
AWindow[] pane = {new AWindow(0,0,50,50),
new AWindow(100,100,60,60),
new AWindow(200,200,70,70)};
:AWindow
pane : Window[]
[0]
[1]
[2]
x 0
y 0
width 50 length 50
:AWindow
x 100 y 100 width 60 length 60
:AWindow
x 200 y 200 width 70 length 70