I’ve determined that a Java ArrayList.add is similar to a JavaScript Array.push
I’m stuck on finding ArrayList functions similar to the following
Array.popArray.shiftArray.unshiftI’m leaning towardArrayList.remove[At]
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
ArrayListis unique in its naming standards. Here are the equivalencies:Note that
unshiftdoes not remove an element, but instead adds one to the list. Also note that corner-case behaviors are likely to be different between Java and JS, since they each have their own standards.