Java tutorial
//package com.java2s; public class Main { public static String maskString(String paramString) { StringBuilder localStringBuilder = new StringBuilder(paramString.length()); for (int i = 0; i < paramString.length(); i++) localStringBuilder.append("*"); return localStringBuilder.toString(); } }