#not storing user-inputed strings into array

66 messages · Page 1 of 1 (latest)

grave islandBOT
#

This post has been reserved for your question.

Hey @amber gull! Please use /close or the Close Post button above when you're finished. 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.

lusty scaffold
#

It's hard to follow you, but why do you call nextLIne() twice?

amber gull
#

so the user can input the name

lusty scaffold
#

You don't think calling it once is enough?

amber gull
#

if i comment it out it won't let the user input the name

lusty scaffold
#

So the reason isn't "so the user can input the name" but "you had the impression that doing that would fix another problem you had"?

amber gull
#

im saying the sc.nextLine() isn't the issue here

lusty scaffold
#

of course it is, come on

amber gull
#

?????????
\

lusty scaffold
#

maybe it's not the only one

amber gull
#

its not storing user-inputed values into the names array

lusty scaffold
#

Yes. So first don't do nonsencial things

amber gull
#

its supposed to be there

#

it makes sense

lusty scaffold
#

Then, let's focus on why sensical things doesn't seem to work

amber gull
#

for the sc.nextLine() to be there

lusty scaffold
#

No, two nextLine() does not make sense

amber gull
#

what would you do instead?

lusty scaffold
#

Not have two, for starters

amber gull
#

ok then it wouldn't work

#

🙂

lusty scaffold
#

Then I'd work on the other problems

#

One step at a time

amber gull
#

yeah thats why im on here

lusty scaffold
#

Step 1: don't do things that can't work

#

Step 2: fix what still doesn't work

amber gull
#

what is the correct step then

#

...

lusty scaffold
#

First don't have two nextLine()

#

It is obviously wrong, so it's removed

amber gull
#

someone else surely knows better

lusty scaffold
#

I can give the solution, but I also demand you learn from the experience

#

Doing nonsensical things, and not even talking about how you're doing so and what's your reason, is wrong. You won't make progress when you do that

amber gull
#

im asking why my values are not being stored in my array, not for you to berate me on using nextline twice

lusty scaffold
#

And I demand you learn how to program, not just demand to be given solutions

amber gull
#

not demanding solutions????

lusty scaffold
#

Well you're refusing anything else, so...

amber gull
#

you aren't offering anything constructive to my question

lusty scaffold
#

Because you aren't participating

amber gull
#

instead you're going off about some other part of my code

lusty scaffold
#

That other part is wrong.

amber gull
#

but im not asking about it

#

what could be the reason why my values are not being stored in the array.

lusty scaffold
#

Yes it is because you can't solve your problem without making it right

#

And if you don't want to speak about a part of your program, then remove it from your program, and don't show it

#

Don't complain that helpers want to talk about it

amber gull
#

ok just overlook it then

lusty scaffold
#

Now are you ready to focus and stop complaining?

lusty scaffold
amber gull
#

cause I've been pretty adamant on insisting that that isn't the problem

#

no we don't

lusty scaffold
#

Beside it can't be overlooked because you can't solve your problem without fixing that part

amber gull
#

theres other helpers here

lusty scaffold
#

How would you know whether it is the problem?

amber gull
#

ok i want a second opinion

lusty scaffold
#

By all means

#

I was going to comment on that quote above, to point out why you didn't apply it correctly.
But you've refused to listen to me, so go ahead waiting for another opinion

amber gull
#

well i fixed it and the nextline wasn't the issue.

lusty scaffold
#

Of course. It works perfectly with two nextLine()s. We all believe that

amber gull
#

yeah it does smarty

#

🤓

#

get over your god complex

lusty scaffold
#

Yes, and I mean, it's not like I can prove it doesn't.