#Writing a static function to return a prompted integer value
21 messages · Page 1 of 1 (latest)
⌛ This post has been reserved for your question.
Hey @cerulean chasm! Please use
/closeor theClose Postbutton above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
you're saying you want to return a value, and yet you're typing return; without specifying anything that should be returned.
I didn't see what's that's int definition we're supposed to ignore.
Well, everything has to be correct at once.
Prefer to show code that seems the closer to be correct to you
It's interesting that it mentions void
Can you tell about that void thing?
No idea what you're saying. I'm asking why did you type void in your program
Then I have the impression there is something you didn't pay attention to. Let me explain
void means that you intend not to return anything
If your plan is to return a value, then by definition of void, you can't type void
Does this ring any bell?
indeed
Note that you don't need parentheses ( ) in the return
Yup
If you are finished with your post, please close it.
If you are not, please ignore this message.
Note that you will not be able to send further messages here after this post have been closed but you will be able to create new posts.
Before your post will be closed, would you like to express your gratitude to any of the people who helped you? When you're done, click I'm done here. Close this post!.
Kind reminder that the instructions demand that you take a String as parameter, though
Don't you know what is a method parameter?
💤 Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.
In case your post is not getting any attention, you can try to use/help ping.
Warning: abusing this will result in moderative actions taken against you.