text « StringBuffer « Java Data Type Q&A





1. Is there a tool to take a block of text and turn it into Java StringBuffer code?    stackoverflow.com

I have several blocks of text that I need to be able to paste inline in my code for some unit tests. It would make the code difficult to read if ...

3. StringBuffer not expanding properly, appended text gets cut off    forums.oracle.com

I am trying to use a StringBuffer, but for some reason the String is being capped at 100 chars. For Example: StringBuffer sb = new StringBuffer(); sb.append("This is a test ONE."); sb.append("This is a test TWO."); sb.append("This is a test THREE."); sb.append("This is a test FOUR."); sb.append("This is a test FIVE."); sb.append("This is a test SIX."); sb.append("This is a test SEVEN."); ...