Question: what is the difference between return and print in java?
Answer: return returns a value in a function, while println prints text out to the command line. A function in java sometimes returns a value. In that function there must be a line of code specifying the value to return. You can then call this function from another location in the code to get that value.