how to write a method that can return either int OR a double
807589Sep 2 2008 — edited Sep 3 2008I need to write a method that returns an int or a double, but I don't know the return type until the method does some calculations. I know there's a way to do this using the object class. Does anyone have a good small example of what I'm trying to do?