<<< StringBuilder append( ) example | Index | StringBuilder deleteCharAt( ) example >>> |
Code that adds dashes to a phone number:
phoneNumber.insert( 3, "-" ); phoneNumber.insert( 7, "-" );
<<< StringBuilder append( ) example | Index | StringBuilder deleteCharAt( ) example >>> |