Java tutorial
//package com.java2s; public class Main { public static String mobile4(String phone2) { return phone2.substring(0, 3) + "****" + phone2.substring(7, phone2.length()); } }