#Array program
14 messages · Page 1 of 1 (latest)
⌛ This post has been reserved for your question.
Hey @next marsh! 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.
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)
Array and ArrayList are different things
Yes
you can convert an array to an arraylist and vice versa
Arraylist java api
https://docs.oracle.com/javase/8/docs/api/java/util/ArrayList.html
thanks for the help