Monday, October 10, 2011

Can a method declare multiple return values? Or Is there some way to return more than one value?

Sort of.A method can declare only one return value. BUT... If you want to return, say, three int values,
then the declared return type can be an Int array. Stuff those ints into the array,and passIt on back. It's
a little more involved to return multiple values with different types.

No comments:

Post a Comment