Jump to content

Java- Not a statement problem

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
1 reply to this topic

#1
gandudu

gandudu

    Newbie

  • Members
  • PipPip
  • 14 posts
public static void G1(int x) {

    sbox2[x & 0xFF] ^    

    sbox1[(x >> 8) & 0xFF] ^

    sbox1[(x >> 16) & 0xFF] ^

    sbox1[(x >> 24) & 0xFF];

}


there is a not a statement error.
Can anyone can correct it?

#2
abzero

abzero

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 217 posts
there's no LHS to that expression.

you need to assign the result to somthing.