How can I return more than one variable with a function with Java?