❔ .NET Console app, issue with array
So, I tried my best to comment on the issue I am having..
As of now, I have no idea what to do, but I'll continue looking into this.. Please, explain what I could do and a path for solving it and not directly writing the solvation for me
12 Replies
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Here, so I am trying to check if the array list called objectsVector is empty, and if so. Print out the message or a message saying it's currently empty.
If it contains any userInputs then print it/them out
Forgot to reply to the message itself
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Any hint would be
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Update, skipping a check for it..
Got a question: TryParse, try catch or whatever, how can I write it here. Finding no solution
How does anything go wrong with that?
I've been working on it for 11 hours straight, for some reason and somehow. I managed to make it crash using that.. then after I gave up, I simply reverted it to this and it.. well, it worked..
ReadLine() can return null if someone pressed CTRL + Z followed by enter
But other than that, it won't return null. Or at least shouldn't.
Why are you checking if the item length is greater than 0? Are you not trying to check the array length?
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.