Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

cast code so that i could receive the amount being returned from a method?

 
naved momin
Ranch Hand
Posts: 692
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how to explicitly cast this code so that i could receive the amount being returned from a method ?
 
fred rosenberger
lowercase baba
Bartender
Pie
Posts: 12098
30
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
a short can only be up to 32k. I don't think there is anything you can do but change the return type of the method.

I won't swear to that, but i believe it is the case.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic