In Java programming if a user inputs a string of their social sec. number with dashes , how do i remove them?

java programming
Rystah asked:


For example string before 987654321 string after 987654321 string before 987654321 string after 987654321 string before 987654321 string after 987654321 string before 987654321 string after 987654321 string after 987654321 string after 987654321.

For example string after 987654321 string before 987654321 string after 987654321 string.

For example string before 987654321 string after 987654321 string after 987654321 string after 987654321.


Tags: , , ,

One Response to “In Java programming if a user inputs a string of their social sec. number with dashes , how do i remove them?”

  1. Donnie Murdo Says:

    String socialNo = “987-65-4321″;
    socialNo = socialNo.replaceAll ( “-”, “” );

Leave a Reply