Removing Numeric Values from Java Strings

# Introduction In this lab, you will learn how to remove numeric values from a String in Java. Strings in Java can contain alphanumeric characters and special symbols. Therefore, sometimes it is necessary to filter the String to get only the alphabets. In this lab, we will use the `replaceAll()` method, which takes two arguments: a regular expression to filter the String and a replacement String.

|
60 : 00

Click the virtual machine below to start practicing