How do I add Ints or Floats together in Java(or BlueJ)? I mean not that:
x=2;
y=3;
System.out.println(y+x);
and then comes 5 out, I mean rather like this:
x=2;
y=3;
c=y+x;
System.out.println(c);
And here should come out 32. Not adding like in Math, rather like combining these things in one new variable. Thanks a lot in advance!