Question: Write a method definition and method call for a void method named determineSugarLevel() which calculates and displays the number of High sugar level in the
Write a method definition and method call for a void method named determineSugarLevel() which calculates and displays the number of High sugar level in the sugarLevel[] array. This method should take one argument of type String array. Assume the following array is declared and initialized in main method:
String sugarLevel [] = {"Low","High","Normal","High","Low","High","High"};
//Call determineSugarLevel() method from main method and send the sugarLevel[] array
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
