Issue
My Textview is getting the data from SQLite, but I want to make Textview to show as follows:
************1234, instead of 1234123412341234.
Solution
String number = "grou353fp23g3qprwog9512";
String mask = number.replaceAll("\\w(?=\\w{4})", "*");
textView.setText(mask);
Output is *******************9512
Answered By - letsCode
Answer Checked By - Senaida (JavaFixing Volunteer)