Use the return statement.
See the tutorial: http://docs.oracle.com/javase/tutorial/java/javaOO/returnvalue.html
When posting code Please wrap your code with
<YOUR CODE HERE>
to get...
Type: Posts; User: Norm
Use the return statement.
See the tutorial: http://docs.oracle.com/javase/tutorial/java/javaOO/returnvalue.html
When posting code Please wrap your code with
<YOUR CODE HERE>
to get...
The code you posted is a method with code inside it. What do you want to change about the method you have posted? What do you want the new method you are working on to do?
See the tutorial about...