I have a program that prompts the user for an entry and they could potentially enter in a lot of things, but I want to catch the dollar signs and convert them to "" in terms of strings. I've tried using the replace method on my string like:
input.replace("$", "");
But that obviously doesn't work. What can I do to achieve this? What if there are multiple dollar signs? Is there a method on String which I can call to replace all dollar signs?