Hi Here you need to understand the behaviour of the println or print method. In print/println method you can use the + operator in two ways: 1. As a string concatenation operator 2. As an Arithmatic operator
And If the argument starts with a string, then + is considered as String concatenation operator like: System.out.println("uday" + 1 + 2 ); //prints uday12 System.out.println(" " + 1 + 2 ); //prints 12 System.out.println(s + 1 + 2 ); //prints abc12 if s is a string of "abc"
And If the argument doesnt start with the String, then the + is considered as arithmatic operator like: System.out.println(1 + 2 ); //prints 3 NOT 12
In your first println statement, the + is used as an arithmatic operator.
This format has symbols having unicode from '\u0000' to '\u00FF'. So any unicode you specify outside this range, JRE fails to find a symbol for it. Thus instead it displays "?" to signify that "I dont know what this unicode stands for..."
-- deepak <br />SCJP 5.0, SCWCD 5.0
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com