#I cant figure out what is being returned

1 messages · Page 1 of 1 (latest)

oak bolt
#

There are 3 places where a perameter value (into) could change or not change. One is that it changes inside the if statment under getSubject() and doesnt change the entire return statment outside of the if statment. Find the if statment with into=false to understand what im saying. Another is that the perameter "true" never changes with a return statment. I am having trouble debugging and figuring out what is going on. As you can see I used print statments but i dont think it is showing me what is being returned. I also think the value changes the print statment but the original perameter is returned, thus the print statment is doing nothing. I will leave the input class and m ymain method where the input class is being called.

viral cliffBOT
#

<@&987246399047479336> please have a look, thanks.

viral cliffBOT
undone garden
#

What's your actual question? And it's a bit like your original question. Formatting it a bit makes it more readable and easier to follow.

viral cliffBOT
#

@oak bolt

Your question has been closed due to inactivity.

If it was not resolved yet, feel free to just post a message below
to reopen it, or create a new thread.

Note that usually the reason for nobody calling back is that your
question may have been not well asked and hence no one felt confident
enough answering.

When you reopen the thread, try to use your time to improve the quality
of the question by elaborating, providing details, context, all relevant code
snippets, any errors you are getting, concrete examples and perhaps also some
screenshots. Share your attempt, explain the expected results and compare
them to the current results.

Also try to make the information easily accessible by sharing code
or assignment descriptions directly on Discord, not behind a link or
PDF-file; provide some guidance for long code snippets and ensure
the code is well formatted and has syntax highlighting. Kindly read through
https://stackoverflow.com/help/how-to-ask for more.

With enough info, someone knows the answer for sure 👍

oak bolt
#

i figured out what was wrong but dont know how to fix it. In main, there is the line "else if(input1.getDate(true)){"
I want it to recognize the return value and not run the method itself

charred parcel
#

Save it as a variable?

rugged plover
#

I think we need a better description of what you're trying to achieve. There are some structural oddities that make it hard to understand intent.

Additionally there are things that simply shouldn't happen - like creating many scanners consuming System.in.

viral cliffBOT
#

@oak bolt

Your question has been closed due to inactivity.

If it was not resolved yet, feel free to just post a message below
to reopen it, or create a new thread.

Note that usually the reason for nobody calling back is that your
question may have been not well asked and hence no one felt confident
enough answering.

When you reopen the thread, try to use your time to improve the quality
of the question by elaborating, providing details, context, all relevant code
snippets, any errors you are getting, concrete examples and perhaps also some
screenshots. Share your attempt, explain the expected results and compare
them to the current results.

Also try to make the information easily accessible by sharing code
or assignment descriptions directly on Discord, not behind a link or
PDF-file; provide some guidance for long code snippets and ensure
the code is well formatted and has syntax highlighting. Kindly read through
https://stackoverflow.com/help/how-to-ask for more.

With enough info, someone knows the answer for sure 👍

oak bolt
#

if(input1.getDate(true)){" i want this line to give me true or false, as it is in an if statment, instead of calling and running the method itself