KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > StringBufferTest


1 public class StringBufferTest {
2
3     public static void main (String JavaDoc [] args) {
4     
5         StringBufferTest sbt = new StringBufferTest();
6     }
7
8
9     public String JavaDoc toString() {
10     
11         int data = 0;
12         
13         StringBuffer JavaDoc sb = new StringBuffer JavaDoc();
14         sb.append("[");
15         sb.append(data);
16         sb.append("]");
17
18         return sb.toString();
19     }
20 }
21
Popular Tags