+ 5
I think you question is about the diffrence between a void function and a function that returns somthing.
void msg(String y){print somthing(y);}
/* âŹDoes not return anything ie theres no return statement in the method body to return a value but it will still print somthing to console when its called */
int msg(int i,int j){ do somthing then>; return new value;}
/*âŹThis method has a return statment in the method body so this one does some stuff and then returns a new value*/
/* so basicly if it doesnt have the "return" keyword in the function(){body} it doesnt return anything âș*/