Xah Lee wrote: >> public class test { >> public static void main(String[] args) { >> String a = new String("a string"); >> String b = new String("another one"); >> StringBuffer c = new StringBuffer(40); >> c.append(a); c.append(b); >> System.out.println(c.toString()); >> } >> } > > Er. How about > > public class test { > public static void main(String[] args) { > String a = "a string"; > String b = "another one"; > StringBuffer c = a + b; > System.out.println(c); > } > }
bugbear wrote: > Alternatively I could recode your Lisp example > as badly as you coded your Java. From what I've seen and heard of Xah Lee, you'd probably lose the bad-coding competition to him. He's a professional. -- Lew -- http://mail.python.org/mailman/listinfo/python-list