I am trying to use the << operator on long , for example:
((long) num3) << ( 2 + (long) num4)))
This gives me the following error:
The <operator cannot be applied to operands of type long and long.
If I don't throw num4 on long , there is no error. However, I cannot save it as an int . Is there any other way around this?
source share