//uses eg25_Telephone class public class eg25_TelephoneTester { public static void main(String[] args) { String phone = "9195551212"; String properNum = eg25_Telephone.format(phone); System.out.println(properNum); //extra demo of replace method, should not put here, bad programming, but I run out of time, so... don't tell anyone System.out.println(); StringBuffer strbuffer = new StringBuffer("We moved from Chicago to Atlanta."); System.out.println(strbuffer); //before strbuffer.replace(14,21,"New York"); //start, end, string System.out.println(strbuffer); //after //other metods like delete, deleteCharAt, setCharAt are very useful. } }