A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Java 8 in Action
this week in the
Programmer Certification (SCJP/OCPJP)
Joined: Oct 10, 2000
Nov 16, 2000 21:02:00
i am using a byte variable because the value to be stored is an integer between 1-50.
x = 1;
x = x + 2; // problems (explicit cast required)
is there any other way to execute this without having to use typecasting?
I agree. Here's the link:
subject: byte problem
The Shift Operators
Increment and Decrement Operators
Bitwise inversion operator question
Difference between additive & assignment operator
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014