[Solved] How to return data to a function? [closed]
I believe you’re asking how to return a value from a function in Java. If I’m incorrect, disregard this response. When you declare the function DoSomething, you need to also declare the type of the return value of the function. In this case, you would probably use int, so the function would look more like: … Read more