If you want a method to return a value, you have to declare it as so.

public void myMethod()

This method can not return a value, because you have defined its return type as void. For example,...