Community
Participate
Working Groups
The line return Double().toString(30.0); is marked as a compile error, "Double() is not a method of <enclosing class>"
This is perfectly fine. You need to write this as: return Double.toString(30.0); No need for () after the Double. If you have (), Double() is considered as a method invocation. Close as INVALID.