KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > C2


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