Welcome to the CSC Q&A, where you can get help (and share your knowledge) about computer science!

Self Check 4.12

+12 votes
It is telling me that m return types do not match.  My return type is int but it is expecting void.  How do I fix this?
asked Jan 19, 2016 in (Winter 15-16) by Michael McAleer (100 points)

1 Answer

+4 votes

Did you declare your method as:

public static void ...

or 

public static int ...

And what type of data does the problem statement say that your method is *supposed* to return?

answered Jan 19, 2016 by Forrest Stonedahl (3,308 points)
...