We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
When I tried to run it and use findDay to replace getDay, this is the error from Java 8
Compile Message
Solution.java:41: error: incompatible types: int cannot be converted to String
String res = Result.findDay(month, day, year);
^
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
1 error
Exit Status
Java Date and Time
You are viewing a single comment's thread. Return to all comments →
When I tried to run it and use findDay to replace getDay, this is the error from Java 8
Compile Message
Solution.java:41: error: incompatible types: int cannot be converted to String String res = Result.findDay(month, day, year); ^ Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output 1 error Exit Status
255