• ⚠️ UK Access Block Notice: Beginning July 1, 2025, this site will no longer be accessible from the United Kingdom. This is a voluntary decision made by the site's administrators. We were not forced or ordered to implement this block.

nigelhernandez

nigelhernandez

Experienced
Apr 14, 2020
270
I'm learning how to program in Java and have come across returns amongs the parameters. Does anyone know what this is?
 
TheNorthernSilence

TheNorthernSilence

Arcanist
Nov 13, 2018
430
Return is the value that the function returns. Like if you have a function sum(a,b) and the return is a+b, using it like sum(1,2) would return a value of 3.
 
Last edited:

Similar threads

Firefly.Forest
Replies
5
Views
397
Suicide Discussion
It'sMyLife
It'sMyLife
life.sucks
Replies
1
Views
137
Suicide Discussion
tonicer
tonicer
Nocturna666
Replies
6
Views
283
Suicide Discussion
.ᴍᴀʏᴜ.
.ᴍᴀʏᴜ.
FadingSnowFake
Replies
18
Views
419
Offtopic
Unlucky777
Unlucky777