I was playing with java and got stuck with this printf method
This Program Compliled well (Intel core 2duo HP Lappy installed Java 1.6 u6 ), but gave strange output! but, When i took the compiled class file and ran it on different Lappy (Turion X2 Compaq) It ran Perfect. I tried it with 4 - 5 PCS with dirrerent Processor (AMD and Intel) and OS (Solaris, Ubuntu, Vista, Xp) all worked Well.
Now why this particular code not working on this Lappy??? I reinstalled Java but same result!
Sounds like the Java installation on the "lappy" (you don't really say that out loud, do you?) is using a default locale/script/character encoding that the Windows console isn't configured for -- for example, a Hindi-localized copy of Windows, and a Japanese JDK.