File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

byte problem

 
raj koura
Greenhorn
Posts: 11
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am using a byte variable because the value to be stored is an integer between 1-50.
byte x;
x = 1;
x = x + 2; // problems (explicit cast required)
is there any other way to execute this without having to use typecasting?
raj.
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic