Search   Feed   Browse   Add
Feed items 1 - 1 of 1 for June 2006

Tom Hawtin

Thomas Hawtin's Weblog

An old favourite updated - June 17, 2006

Writing a program to print itself to standard output is a pointless task, but that isn't about to stop me. Printing the " character is the key to a concise solution. Various tricks make the program shorter. New in Java 5.0, PrintStream (and StringBuffer) catch up with Writer, by effectively allowing a print to combine with a substringsubSequence. class TstaticString t="+(char)34;System.out.append(t+t+t,44,182);class TstaticString t="+(char)34;System.out.append(t+t+t,44,182); See, tiger really.
http://www.jroller.com/tackline/entry/an_old_favourite_updated
Available Archives
- January (1 item)
- February (3 items)
- March (1 item)
- April (3 items)
- May (1 item)
- June (1 item)
- August (2 items)
- October (1 item)
- November (10 items)
- December (9 items)
Sponsored Links
© 2008 FeedCapsule.com  |  Contact