Jan 31 2009
Java weirdness
“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 ..
Jan 31 2009
“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 ..