[Bluej-discuss] concatenating an index value with a note ex 4.15

Gordon Royle gordon at csse.uwa.edu.au
Thu Oct 5 11:00:10 BST 2006


On 05/10/2006, at 5:13 PM, Michael Kölling wrote:

>
> It all will work, since Java has a rule that says: If any of the
> operands of a + operator is a String, then the other operand will be
> converted to a String, and the '+' will be interpreted as String
> concatenation.

Personally, I think the decisions to overload + and THEN to do this  
auto-conversion are two of the worst design decisions of Java...



More information about the bluej-discuss mailing list