Created
November 15, 2018 08:07
-
-
Save ThinkDigitalSoftware/34252a9fb32215ae7fbfa8f53ee3a642 to your computer and use it in GitHub Desktop.
number_obfuscation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
main(){ | |
String number = "3231234545"; | |
String xedNumber=""; | |
for(int i = 0; i < number.length; i++){ | |
if(i > 2 && i< number.length - 2) | |
xedNumber += "x"; | |
else | |
xedNumber += number[i]; | |
} | |
print(xedNumber); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment