A blog about software engineering and my working experiences on this field : )

  • Mask a String Except Last 4 Chars in Java

    When we want to mask a part of sensitive data, such as a card number, it is very necessary to have a method that can consider all the conditions and finally give a masked output. The following code snippet shows how to implement a simple data mask using basic Java commands.

Got any recommendations?