Campbell Ritchie wrote:Wlcome to the Ranch
Please copy exactly what the book said, using exactly the same notation; you may find it useful to use the ⁸ HTML tag for ⁸.
Many people write ^ thinking it is the exponentiation operator, but in Java® it isn't. It is bitwise exclusive or.Java® doesn't have an exponentiaton operator; I don't know whether the bitwise operators will appear in your exam.
Liutauras Vilda wrote:Which book is that?
Muh Po wrote:should be
... 2x2 + 4x2 + 8x2 + 16x2 + 32x2 + 64x2 + 128x2 = 256
And how did you get 256 by proposing such calculation? I'm getting 508.