See The StringBuilder Class (The Java™ Tutorials > Learning the Java Language > Numbers and Strings)