<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://mediawiki.zeropage.org/index.php?action=history&amp;feed=atom&amp;title=Java%2FCapacityIsChangedByDataIO</id>
	<title>Java/CapacityIsChangedByDataIO - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://mediawiki.zeropage.org/index.php?action=history&amp;feed=atom&amp;title=Java%2FCapacityIsChangedByDataIO"/>
	<link rel="alternate" type="text/html" href="https://mediawiki.zeropage.org/index.php?title=Java/CapacityIsChangedByDataIO&amp;action=history"/>
	<updated>2026-05-15T20:20:11Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.8</generator>
	<entry>
		<id>https://mediawiki.zeropage.org/index.php?title=Java/CapacityIsChangedByDataIO&amp;diff=84534&amp;oldid=prev</id>
		<title>Maintenance script: Repair batch-0002 pages from live compare</title>
		<link rel="alternate" type="text/html" href="https://mediawiki.zeropage.org/index.php?title=Java/CapacityIsChangedByDataIO&amp;diff=84534&amp;oldid=prev"/>
		<updated>2026-03-27T00:16:06Z</updated>

		<summary type="html">&lt;p&gt;Repair batch-0002 pages from live compare&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 00:16, 27 March 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l4&quot;&gt;Line 4:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 4:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== 더 할만한것 ===&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== 더 할만한것 ===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;capacity 정보를 제공하는 것이  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;capacity 정보를 제공하는 것이  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; ~cpp &lt;/del&gt;StringBuffer&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;code&amp;gt;&lt;/ins&gt;StringBuffer&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/code&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;, Vector 밖에 없다. 다른 것들을 볼려면 상속받아서 내부 인자를 봐야 겠다.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;, Vector 밖에 없다. 다른 것들을 볼려면 상속받아서 내부 인자를 봐야 겠다.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l72&quot;&gt;Line 72:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 72:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  	private int totalNumOfData = 1000000;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  	private int totalNumOfData = 1000000;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  	&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  	&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  	public static void main(String&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[] &lt;/del&gt;args) {&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  	public static void main(String&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;amp;#91;&amp;amp;#93; &lt;/ins&gt;args) {&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  		CapacityTest capacity = new CapacityTest(System.out);&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  		CapacityTest capacity = new CapacityTest(System.out);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l184&quot;&gt;Line 184:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 184:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  }&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  }&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
	<entry>
		<id>https://mediawiki.zeropage.org/index.php?title=Java/CapacityIsChangedByDataIO&amp;diff=33274&amp;oldid=prev</id>
		<title>imported&gt;Unknown at 05:23, 7 February 2021</title>
		<link rel="alternate" type="text/html" href="https://mediawiki.zeropage.org/index.php?title=Java/CapacityIsChangedByDataIO&amp;diff=33274&amp;oldid=prev"/>
		<updated>2021-02-07T05:23:33Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;재미로 보는 [[Java]] Container Capacity 변화&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
=== 더 할만한것 ===&lt;br /&gt;
capacity 정보를 제공하는 것이 &lt;br /&gt;
 ~cpp StringBuffer&lt;br /&gt;
, Vector 밖에 없다. 다른 것들을 볼려면 상속받아서 내부 인자를 봐야 겠다.&lt;br /&gt;
&lt;br /&gt;
=== 결과 ===&lt;br /&gt;
capacity 변화가 있을때 마다만 출력&lt;br /&gt;
 &lt;br /&gt;
 Show String Buffer capactity by Data I/O in increment&lt;br /&gt;
 data length:         0	capacity:        16&lt;br /&gt;
 data length:        17	capacity:        34   &amp;amp;lt;-- 현재 길이의 두배로&lt;br /&gt;
 data length:        35	capacity:        70&lt;br /&gt;
 data length:        71	capacity:       142&lt;br /&gt;
 data length:       143	capacity:       286&lt;br /&gt;
 data length:       287	capacity:       574&lt;br /&gt;
 data length:       575	capacity:     1,150&lt;br /&gt;
 data length:     1,151	capacity:     2,302&lt;br /&gt;
 data length:     2,303	capacity:     4,606&lt;br /&gt;
 data length:     4,607	capacity:     9,214&lt;br /&gt;
 data length:     9,215	capacity:    18,430&lt;br /&gt;
 data length:    18,431	capacity:    36,862&lt;br /&gt;
 data length:    36,863	capacity:    73,726&lt;br /&gt;
 data length:    73,727	capacity:   147,454&lt;br /&gt;
 data length:   147,455	capacity:   294,910&lt;br /&gt;
 data length:   294,911	capacity:   589,822&lt;br /&gt;
 data length:   589,823	capacity: 1,179,646&lt;br /&gt;
 data length: 1,000,000	capacity: 1,179,646  &amp;amp;lt;-- 마지막 출력은 임의이다.&lt;br /&gt;
 &lt;br /&gt;
 Show String Buffer capactity by Data I/O in decrement&lt;br /&gt;
 data length: 1,000,000	capacity: 1,179,646&lt;br /&gt;
 data length:         0	capacity: 1,179,646  &amp;amp;lt;-- 건드리지 않음&lt;br /&gt;
 &lt;br /&gt;
 Show Vector capactity by Data I/O in increment&lt;br /&gt;
 data length:         0	capacity:        10&lt;br /&gt;
 data length:        11	capacity:        20   &amp;amp;lt;-- 이전 capacity 의 두배로&lt;br /&gt;
 data length:        21	capacity:        40&lt;br /&gt;
 data length:        41	capacity:        80&lt;br /&gt;
 data length:        81	capacity:       160&lt;br /&gt;
 data length:       161	capacity:       320&lt;br /&gt;
 data length:       321	capacity:       640&lt;br /&gt;
 data length:       641	capacity:     1,280&lt;br /&gt;
 data length:     1,281	capacity:     2,560&lt;br /&gt;
 data length:     2,561	capacity:     5,120&lt;br /&gt;
 data length:     5,121	capacity:    10,240&lt;br /&gt;
 data length:    10,241	capacity:    20,480&lt;br /&gt;
 data length:    20,481	capacity:    40,960&lt;br /&gt;
 data length:    40,961	capacity:    81,920&lt;br /&gt;
 data length:    81,921	capacity:   163,840&lt;br /&gt;
 data length:   163,841	capacity:   327,680&lt;br /&gt;
 data length:   327,681	capacity:   655,360&lt;br /&gt;
 data length:   655,361	capacity: 1,310,720&lt;br /&gt;
 data length: 1,000,000	capacity: 1,310,720 &amp;amp;lt;-- 마지막 출력은 임의이다.&lt;br /&gt;
 &lt;br /&gt;
 Show String Buffer capactity by Data I/O in decrement&lt;br /&gt;
 data length: 1,000,000	capacity: 1,310,720&lt;br /&gt;
 data length:         0	capacity: 1,310,720  &amp;amp;lt;-- 건드리지 않음&lt;br /&gt;
&lt;br /&gt;
=== 소스 ===&lt;br /&gt;
 이런;; 간단한 소스가 늘어나 버린것 처럼 보인다.&lt;br /&gt;
 import java.io.PrintStream;&lt;br /&gt;
 import java.io.PrintWriter;&lt;br /&gt;
 import java.text.DecimalFormat;&lt;br /&gt;
 import java.util.Vector;&lt;br /&gt;
 &lt;br /&gt;
 public class CapacityTest {&lt;br /&gt;
 	private static final int NUMBER_LIMIT_LEN = 10;&lt;br /&gt;
 	private PrintStream out;&lt;br /&gt;
 	private PrintWriter k;&lt;br /&gt;
 	private int totalNumOfData = 1000000;&lt;br /&gt;
 	&lt;br /&gt;
 	public static void main(String[] args) {&lt;br /&gt;
 		CapacityTest capacity = new CapacityTest(System.out);&lt;br /&gt;
 &lt;br /&gt;
 		capacity.testStringBuffer();&lt;br /&gt;
 		capacity.testVector();&lt;br /&gt;
 &lt;br /&gt;
 	}&lt;br /&gt;
 	public CapacityTest(PrintStream anOut) {&lt;br /&gt;
 		out = anOut;&lt;br /&gt;
 		if (out == null)&lt;br /&gt;
 			throw new NullPointerException(&amp;quot;out is null&amp;quot;);&lt;br /&gt;
 	}&lt;br /&gt;
 	public void testStringBuffer() {&lt;br /&gt;
 		StringBuffer stringBuffer = new StringBuffer();&lt;br /&gt;
 		showStringBufferIncrease(stringBuffer);&lt;br /&gt;
 		showStringBufferDecrease(stringBuffer);&lt;br /&gt;
 	}&lt;br /&gt;
 	public void testVector() {&lt;br /&gt;
 		Vector vector = new Vector();&lt;br /&gt;
 		showVectorIncrease(vector);&lt;br /&gt;
 		showVectorDecrease(vector);&lt;br /&gt;
 	}&lt;br /&gt;
 &lt;br /&gt;
 	private void printTitle(String aContainerKind, String aSituation) {&lt;br /&gt;
 		out.println();&lt;br /&gt;
 		out.println(&lt;br /&gt;
 			&amp;quot;Show &amp;quot;&lt;br /&gt;
 				+ aContainerKind&lt;br /&gt;
 				+ &amp;quot; capactity by Data I/O in &amp;quot;&lt;br /&gt;
 				+ aSituation);&lt;br /&gt;
 	}&lt;br /&gt;
 	private void printContainerState(int aSize, int aCapacity) {&lt;br /&gt;
 		DecimalFormat df = new DecimalFormat(&amp;quot;###,###,###&amp;quot;);&lt;br /&gt;
 &lt;br /&gt;
 		String size = df.format(aSize);&lt;br /&gt;
 		String capacity = df.format(aCapacity);&lt;br /&gt;
 &lt;br /&gt;
 		size = getShowedString(size, NUMBER_LIMIT_LEN);&lt;br /&gt;
 		capacity = getShowedString(capacity, NUMBER_LIMIT_LEN);&lt;br /&gt;
 &lt;br /&gt;
 		out.println(&amp;quot;data length:&amp;quot; + size + &amp;quot;\tcapacity:&amp;quot; + capacity);&lt;br /&gt;
 	}&lt;br /&gt;
 	private String getShowedString(String aSrc, int aLimit) {&lt;br /&gt;
 		int insufficientLen = aLimit - aSrc.length();&lt;br /&gt;
 		StringBuffer showedString = new StringBuffer(aLimit);&lt;br /&gt;
 		for (int i = 0; i &amp;amp;lt; insufficientLen; i++)&lt;br /&gt;
 			showedString.append(&amp;quot; &amp;quot;);&lt;br /&gt;
 		showedString.append(aSrc);&lt;br /&gt;
 		return showedString.toString();&lt;br /&gt;
 	}&lt;br /&gt;
 &lt;br /&gt;
 	public void showStringBufferIncrease(StringBuffer stringBuffer) {&lt;br /&gt;
 		printTitle(&amp;quot;String Buffer&amp;quot;, &amp;quot;increment&amp;quot;);&lt;br /&gt;
 		printContainerState(stringBuffer.length(), stringBuffer.capacity());&lt;br /&gt;
 &lt;br /&gt;
 		for (int length = 0; length &amp;amp;lt; totalNumOfData; length++) {&lt;br /&gt;
 			int oldCapacity = stringBuffer.capacity();&lt;br /&gt;
 			stringBuffer.append((char) (&amp;#039;a&amp;#039; + length % 26));&lt;br /&gt;
 &lt;br /&gt;
 			if (oldCapacity != stringBuffer.capacity())&lt;br /&gt;
 				printContainerState(&lt;br /&gt;
 					stringBuffer.length(),&lt;br /&gt;
 					stringBuffer.capacity());&lt;br /&gt;
 		}&lt;br /&gt;
 		printContainerState(stringBuffer.length(), stringBuffer.capacity());&lt;br /&gt;
 	}&lt;br /&gt;
 	public void showStringBufferDecrease(StringBuffer stringBuffer) {&lt;br /&gt;
 &lt;br /&gt;
 		printTitle(&amp;quot;String Buffer&amp;quot;, &amp;quot;decrement&amp;quot;);&lt;br /&gt;
 		printContainerState(stringBuffer.length(), stringBuffer.capacity());&lt;br /&gt;
 &lt;br /&gt;
 		for (int counter = stringBuffer.length(); counter &amp;amp;gt; 0; counter--) {&lt;br /&gt;
 			int oldCapacity = stringBuffer.capacity();&lt;br /&gt;
 			stringBuffer.delete(&lt;br /&gt;
 				stringBuffer.length() - 1,&lt;br /&gt;
 				stringBuffer.length());&lt;br /&gt;
 &lt;br /&gt;
 			if (oldCapacity != stringBuffer.capacity())&lt;br /&gt;
 				printContainerState(&lt;br /&gt;
 					stringBuffer.length(),&lt;br /&gt;
 					stringBuffer.capacity());&lt;br /&gt;
 		}&lt;br /&gt;
 		printContainerState(stringBuffer.length(), stringBuffer.capacity());&lt;br /&gt;
 	}&lt;br /&gt;
 	public void showVectorIncrease(Vector aVector) {&lt;br /&gt;
 		printTitle(&amp;quot;Vector&amp;quot;, &amp;quot;increment&amp;quot;);&lt;br /&gt;
 		printContainerState(aVector.size(), aVector.capacity());&lt;br /&gt;
 &lt;br /&gt;
 		for (int size = 0; size &amp;amp;lt; totalNumOfData; size++) {&lt;br /&gt;
 			int oldCapacity = aVector.capacity();&lt;br /&gt;
 			aVector.add(&amp;quot;This is Gabage Data&amp;quot;);&lt;br /&gt;
 &lt;br /&gt;
 			if (oldCapacity != aVector.capacity())&lt;br /&gt;
 				printContainerState(aVector.size(), aVector.capacity());&lt;br /&gt;
 		}&lt;br /&gt;
 		printContainerState(aVector.size(), aVector.capacity());&lt;br /&gt;
 	}&lt;br /&gt;
 	public void showVectorDecrease(Vector aVector) {&lt;br /&gt;
 		printTitle(&amp;quot;String Buffer&amp;quot;, &amp;quot;decrement&amp;quot;);&lt;br /&gt;
 		printContainerState(aVector.size(), aVector.capacity());&lt;br /&gt;
 &lt;br /&gt;
 		for (int counter = aVector.size(); counter &amp;amp;gt; 0; counter--) {&lt;br /&gt;
 			int oldCapacity = aVector.capacity();&lt;br /&gt;
 			aVector.remove(aVector.size() - 1);&lt;br /&gt;
 &lt;br /&gt;
 			if (oldCapacity != aVector.capacity())&lt;br /&gt;
 				printContainerState(aVector.size(), aVector.capacity());&lt;br /&gt;
 		}&lt;br /&gt;
 		printContainerState(aVector.size(), aVector.capacity());&lt;br /&gt;
 	}&lt;br /&gt;
 &lt;br /&gt;
 }&lt;br /&gt;
&lt;/div&gt;</summary>
		<author><name>imported&gt;Unknown</name></author>
	</entry>
</feed>