A. Introduction
Can arrays be declared for other types of data such as char? How?
When using arrays, we often care more about data values than indices. Do we have to use indices to access array values?
B. Watch ... (Slides )
C. Now, can you:
Find out what String method can turn a string into a char array and vice versa
Create a char array to record 10 coin toss results: 'h' for head and 't' for tail. Initialize this array then print out the total number of heads.
Create a boolean array for coin toss? How to count the number of tails then?
Use enhanced for loop to rewrite your code to compute the average, max and min height.
D. Find out what are wrong in these slides.