Java Reference
In-Depth Information
Yes.
12 . If a method returns no value, what must its return type be?
void
Chapter 5: More Data Types and Operators
1 . Show two ways to declare a one-dimensional array of 12 double s.
2 . Show how to initialize a one-dimensional array of integers to the values 1 through 5.
3 . Write a program that uses an array to find the average of ten double values. Use any
ten values you like.
4 . Change the sort in Try This 5-1 so that it sorts an array of strings. Demonstrate that it
works.
Search WWH ::




Custom Search