Answered step by step
Verified Expert Solution
Question
1 Approved Answer
make sure to ignore case so ZDP and zdp counts public static int countTheZDPs(String val){ Using .index of in a While Loop count the number
make sure to ignore case so "ZDP" and "zdp" counts
public static int countTheZDPs(String val){ Using .index of in a While Loop count the number of "ZDP"'s in the String. Ensure you check for Upper and lower Case ZDPS } - TEST: countTheZDPs("Its a ZDP day for coding, its a zdp day for coding, won't you code")->2Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started