0
How "return()" concept is work in java coding? I m confused about it
2 Antworten
+ 1
lets say you have a method called sum:
public int sum(int a, b) {
return a+b;
}
This will basically say: we are going to add a to b and using the method you like:
int sumnrs = sum(5, 3);
if you print this out you will get 8 because you are basically doing this: int sumnrs = 5 + 3;
0
thanks lucas