
8.10 Exercises,Problems,and Projects 555
EXERCISES,PROBLEMS, AND PROJECTS
56. Write a method that returns the percentage of the number of ele-
ments that have the value true in an array of booleans.
57. Write a method that returns true if an array of Strings contains the
String “Hello”; false otherwise.
58. Write a method that prints all the elements of an array of chars in
reverse order.
59. Write a method that returns an array composed of all the elements in
an array of chars in reverse order.
60. Write an array-returning method that takes a String as a parameter
and returns the corresponding array of chars.
61. Code an array-returning method that takes ...