CH

February 23, 2014

"Java methods return exactly zero or one value..."

Filed under: Uncategorized — @ 12:00 a.m.
"Java methods return exactly zero or one value..."

Java methods return exactly zero or one value; that is the standard for java. If you need multiple values returned, create an object with the multiple values and return it.
http://stackoverflow.com/a/7470912

Why would anyone want to return multiple values from a function instead of creating a new encapsulation layer? Psh.

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Reply

« Best ecommerce landing page of 2017 --- The CIA's flickr account »