This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
The Byte.toString() method returns a new String instance each time you call it. As a result, the expression "(b1.toString() == b1.toString())" actually creates two objects and compares their references, which will of course not be equal. However, "b1.toString().equals(b1.toString())" will evaluate to true, since both String objects contain the text "12". [ October 29, 2007: Message edited by: Kelvin Lim ]
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