KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > C4


1 /* Copyright (C) 2004 - 2006 db4objects Inc. http://www.db4o.com */
2
3 class C4 {
4   private String JavaDoc s;
5   private transient int i;
6
7   private C4(String JavaDoc s) {
8     this.s=s;
9     this.i=s.length();
10   }
11
12   public String JavaDoc toString() {
13     return s+i;
14   }
15 }
16
Popular Tags