Is this issue occurring when you are trying to return a value? If so, it likely means that the method starts with something like:
public static void methodName() {
When it should be:
public static int methodName(){
if you are trying to return an integer.