Question: Use a method to determine the 'e' AND 'g' in a string public static int countEandG(String val){ int letterCnt = 0; return letterCnt; }

Use a method to determine the 'e' AND 'g' in a string
public static int countEandG(String val){ int letterCnt = 0;
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
