posted 10 years ago
So here's the first line of the method which the compiler is complaining about. What does it mean? Well, starting at the beginning, it tells us the method is coderanch. And it tells us that the method is static. And it tells us that the method returns an int value.
And there's the problem. You don't have a return statement anywhere in the method which returns the int value that is supposed to be returned when you print an array.
But wait a minute. Why should printing an array return an int value? Why should it return anything at all? I think that's the actual problem you need to fix.