<<< StringBuilder deleteCharAt( ) example | Index | Automatic growth of StringBuilder capacity >>> |
Code that parses a phone number
StringBuilder phoneNumber = new StringBuilder( "977-555-1212" ); String areaCode = phoneNumber.substring( 0, 3 ); String prefix = phoneNumber.substring( 4, 7 ); String suffix = phoneNumber.substring( 8 );
<<< StringBuilder deleteCharAt( ) example | Index | Automatic growth of StringBuilder capacity >>> |