Question: Have to use Character.isLetterOrDigit in Java. Write a recursive method to eliminate white space and punctuation from a string. public class Lab { public static

Have to use Character.isLetterOrDigit in Java.

Write a recursive method to eliminate white space and punctuation from a string.

public class Lab { public static void main (String args[]) { String s="How are you today?"; System.out.println(removeWS(s)); s="The year is 2017 don't you know?"; System.out.println(removeWS(s)); s="!@l#$e%^&v*e()r_+=-"; System.out.println(removeWS(s)); }

public static String removeWS(String a) { }

}

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!