public class Solution {
public static void main(String[] args) {
printIdea(new Idea());
}
public static void printIdea(Idea idea) {
getDescription();
}
public static class Idea {
public String getDescription() {
return String;
}
}
}
Any hints?
Under discussion
Comments (2)
- Popular
- New
- Old
You must be signed in to leave a comment
krystian
15 January 2020, 17:52
I added String variable and it stil doesnt work
0
klesk
15 January 2020, 15:11
To return a String you must have an initialized String variable to return. Then you have to print the returned String.
0