Jump to content

Java Return


aeonsky

Recommended Posts

Hello, here is the little piece of code...

 

if(i == portfolio.length){
     portfolio = expand(portfolio);
     portfolio[portfolio.length-1] = temp;
     return;
} else {
     return;
}

 

I think I saw this in other programming languages, that if you don't have anything after the return statement, it returns the last expression. However, I do not know what the return statement which is after the else statement returns. Thanks for the help!

Link to comment
https://forums.phpfreaks.com/topic/132759-java-return/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.