Notepad for new ideas

  • 5
  • unavailable
Great ideas need to be written down or they can be forgotten very quickly. To help with this, in the Solution class, create a static Idea class. Give it a public String getDescription() method that returns any non-empty string. Then create a static public void printIdea(Idea idea) method that displays a description of the idea.
You can't complete this task, because you're not signed in.
  • Popular
  • New
  • Old
You must be signed in to leave a comment
ZserboLevel 14 , Budapest
21 June, 17:22
I don't get this exercise. How should the getDescription() method return a description if there is no input?
Justin SmithLevel 8
10 November, 22:21
I got hung up on that as well, the direction for "any non-empty string" is easy to misinterpret. You have the method return any string that isn't empty. So cat, yes, derp, 12345, literally anything as a string. I thought it was saying create logic to determine whether an input was empty or not, and then return it if it isn't empty.
Johnson JoseLevel 10 , Edinburgh
17 May, 06:58
The Idea class is a static class. What is the point of creating objects new Idea() ? I don't understand. How is this different from creating objects of a non-static class?
ThomasLevel 9
7 March, 12:58
Can someone please explain what this exercise is asking? I don't understand what it is asking you to do, and also please help me to understand the concepts for this exercise. Thank you
Muhammad VahhaajLevel 19 , Rawalpindi
15 June, 07:58
it says to make one static class, one method of that class and one static method of Solution class This exercise is intended to teach you the flow between static and non static classes. And that static methods and variable can only access static methods and variables