#Array program

14 messages · Page 1 of 1 (latest)

next marsh
#

Just need a program that returns the sum of the min and max of an array technically print not needed but id like to verify it works

cinder adderBOT
#

This post has been reserved for your question.

Hey @next marsh! 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.

royal solar
#

I mean array are not the same as tab so to first access the element of an array you need to use the methods of the object

#

Which is here get()

#

Also to get the length of an array you don't use length but size() instead

#

Plus you don't need to import all the utili library, just import what you need (here only the first import is usefull)

tame cloud
#

Array and ArrayList are different things

royal solar
#

Yes

tame cloud
#

you can convert an array to an arraylist and vice versa

#
#
next marsh
#

thanks for the help