+ 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 â˜ș*/
10th Feb 2018, 8:50 AM
D_Stark
D_Stark - avatar