Whats in this post?
- Background and Explanation of the code
To copy code: Click “View Source” on the right of this code snippet.
Background and Explanation of the code
A program that uses the string method replaceAll. What the program does is, it replaces all the characters in a string except the numbers.
It prints out the original string and the modified one.