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.