wood burning stoves 2.0*
The moose likes Java in General and the fly likes cast code so that i could receive the amount being returned from a method? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "cast code so that i could receive the amount being returned from a method?" Watch "cast code so that i could receive the amount being returned from a method?" New topic
Author

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

naved momin
Ranch Hand

Joined: Jul 03, 2011
Posts: 688

how to explicitly cast this code so that i could receive the amount being returned from a method ?


The Only way to learn is ...........do!
Visit my blog http://inaved-momin.blogspot.com/
fred rosenberger
lowercase baba
Bartender

Joined: Oct 02, 2003
Posts: 11160
    
  16

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.


There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: cast code so that i could receive the amount being returned from a method?
 
Similar Threads
Method: Return String Array position
return Boolean
Mixing of code - raw and generic
K&S CHAPTER 3
short return method