How can I implement a simple OOP list in java, without using any Java lib?
What are the typical features of Java lists?
What do you think about if someone tells you “list” regarding java? I don’t know if it is a linked or whatever list.
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.
You can take a look at the javadocs for
java.util.Listand see what methods it defines to get an indea. Then, you can think about an implementation of yours.The above interface has a lot of implementations:
ArrayListandLinkedListbeing just some of the most popular.