See that? With add()
, we can add as many values at the end of an ArrayList as we want.
Psst: String.join()
is another utility method that joins an ArrayList's values into a single string, separating them with another String
-type value.
Oh noes! Don't forget to add the quotation marks when adding a string.