Archive for January, 2009

Jan 31 2009

Java weirdness

Published by pj under java

“In Java, int x = 5; x += 2.5; works (x is now 7), whereas int x = 5; x = x + 2.5; gives a type error.”

The first one to explain this wins a free beer .. ;-)

2 responses so far