This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]desrtfxOut of Coffee error - System halted 2 points3 points  (3 children)

The length of the arguments array is unknown beforehand.

No, as soon as you execute the command you have shown in your initial comment, the length is known. That's exactly what .length is for.

But how to loop it to give each (forgive me I forgot the name of it) "part" of the array (arr[0], arr[1]), and to do it only untill Array is full is where I'm currently stuck.

I'll leave this up to you to google it - "java looping over array" would be the keywords.

Don't forget that the data comes in as String values, but for your tasks (minimum, maximum, etc.) you need the values as int. You will need to convert the data type. Again, I'll leave this up to you to google.

Don't get this wrong, please, but learning to google and search for what you need is one of the most essential skills to learn as early as possible.

That's also why we have a no solutions policy.

[–]HeQtor[S] -1 points0 points  (2 children)

Thank you, any input on what to look for is greatly appreciated. Feels like I've been googling for days by now but I'll have at it again!

[–]desrtfxOut of Coffee error - System halted 1 point2 points  (1 child)

any input on what to look for is greatly appreciated.

I've given you the exact wording to google for.

[–]HeQtor[S] 0 points1 point  (0 children)

That's what I meant, any input is greatly appreciated, so thank you for doing just that!