#Need help in Java assignments
15 messages · Page 1 of 1 (latest)
⌛ This post has been reserved for your question.
Hey @maiden star! Please use
/closeor theClose Postbutton 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.
We won't do your homework for you. Try the problem first, and if you have a question on a specific part of the problem, or your implementation of the problem, we can help!
i just need to know how do i take input if the length of the array isn't given
read the entire line as a string then split it
or you could also not use an array
you could read numbers sequentially as well (not storing them at all, since the input is sorted)
or you could use a different structure like a List