Question: * 5: Write a public static method named q5 that takes a String as a parameter and returns * an int. The return value is

* 5: Write a public static method named q5 that takes a String as a parameter and returns * an int. The return value is the total number of times "t" and "u" appear in the input *String. ks * Hint: If the second argument of the replace method is "" the matching characters wili be * removed (Replaced with nothing)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
