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

 " q4: Write a public static method named q4 that takes

" q4: Write a public static method named q4 that takes a String as a parameter and returns * an int. The return value is the length of the input String after removing each instance of "z", "", and "k". * Hint: If the second argument of the replace method is * removed (Replaced with nothing) the matching characters will be * See (https://docs.oracle.com/Javase/8/docs/api/java/lang/String.html#method.summary) for a complete list of methods contained in the String class. You may call any of these methods in your method q5: Write a public static method named q5 that takes a String as a parameter and returns a String. To compute the return String, first convert the input String to all upper case letters then replace all instances of the character "N" with the character "C" See (https://docs.oracle.com/javase/8/docs/api/java/lang/Strine htm

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!