Answer the question
In order to leave comments, you need to log in
Where is the mistake?
public static String rhymeCount() {
}
Throws an error: "Illegal modifier for parameter rhymeCount; only final is permitted".
What is the problem ?
JDK 8.
Answer the question
In order to leave comments, you need to log in
Local variables and parameters cannot have public or private modifier. You can only give final to them.
You can't just take and declare a static variable inside a method!
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question