die Seilerwerks

Chronicling Life, Love, Linux and Oracle database administration.

Posts Tagged ‘sprintf

sprintf() in PL/SQL

without comments

René Nyffenegger has hacked up a PL/SQL implementation of sprintf(). I haven’t done too much in PL/SQL, but I didn’t have much a problem with lpad() and rpad(). But who doesn’t love good old sprintf() otherwise?

Written by Don Seiler

April 15, 2007 at 10:25 am

Posted in Uncategorized

Tagged with , ,

Java5 Formatting Goodness

without comments

Back when I was researching how to format strings in java, I was dismayed that there wasn’t built-in sprintf() functionality. There was a non-standard class written by some folks at Sun called PrintfFormat. Still, not the same.

Yesterday I was reminded that such a thing was supposed to have been implemented in Java5, and indeed it was. The Formatter class provides just what I want, and it is all made even easier by just calling the static String.format() method. Oh, RAPTURE!

Written by Don Seiler

December 12, 2006 at 2:46 pm

Posted in Uncategorized

Tagged with ,