I\'m very new to Java. Eclipse is giving me the error
The method must return a result of type int
for the following code:
Are you trying to put multiple classes into one file? Each class should get its own .java file with the appropriate name. Also make the first letter of your class upper case, as this is the naming convention.
As an aside, your function will only work if a is larger than c. You've missed out on some cases.
EDIT: you can have nested classes, but I think you might want to stay away from stuff like that for now.