Enter theta:" for your Java app? Or an even bigger palava trying to print "theta" out to exactly 4 decimal places?
There are some Java classes available on the web
that implement C printf-style formatting, but
they were sufficiently incomplete or non-robust that
I decided it was worthwhile to implement my own.
I didn't find much of anything for emulating scanf,
so I implemented that too, and put the whole thing
together into a package called
It's free for non-commercial use, so enjoy!