• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Tim Cooke
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Frank Carver
  • Henry Wong
  • Ron McLeod
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Himai Minh

ArrayList implementation

 
Ranch Hand
Posts: 373
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How is ArrayList implemented?
 
Sheriff
Posts: 17106
298
Mac Android IntelliJ IDE Eclipse IDE Spring Debian Java Ubuntu Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Ana Smith wrote:How is ArrayList implemented?



Search for java.util.ArrayList source code
 
Ana Smith
Ranch Hand
Posts: 373
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What exactly does "implemented" mean? Does it mean how to use it or...
 
Junilu Lacar
Sheriff
Posts: 17106
298
Mac Android IntelliJ IDE Eclipse IDE Spring Debian Java Ubuntu Linux
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Ana Smith wrote:What exactly does "implemented" mean? Does it mean how to use it or...



Search for define implemented
 
Ana Smith
Ranch Hand
Posts: 373
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I searched it up and google says put into effect. So does it mean create or how it works?
 
Ana Smith
Ranch Hand
Posts: 373
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Also what is the name of the parent class of the interface Collection? Is it the Object class?
 
Junilu Lacar
Sheriff
Posts: 17106
298
Mac Android IntelliJ IDE Eclipse IDE Spring Debian Java Ubuntu Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Ana Smith wrote:How is ArrayList implemented?



Aren't you the one who asked this question? Or is this a homework question you're supposed to answer?

"implemented" when you're talking about code usually means how something is written.  That is, if you say "How do you implement a calculator in Java" that means "How do you write a calculator program in Java?"
 
Junilu Lacar
Sheriff
Posts: 17106
298
Mac Android IntelliJ IDE Eclipse IDE Spring Debian Java Ubuntu Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Ana Smith wrote:Also what is the name of the parent class of the interface Collection? Is it the Object class?



Please clarify whether or not this is a question that is part of a homework assignment. If it is, you're basically cheating by having people give you the answers to these. We don't encourage that around here.
 
Ana Smith
Ranch Hand
Posts: 373
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This question is part of a homework worksheet and I want to make sure I understand the question. Our homework is not based on accuracy but I still want to make sure I get them correct proving that I understand the topic.
 
Junilu Lacar
Sheriff
Posts: 17106
298
Mac Android IntelliJ IDE Eclipse IDE Spring Debian Java Ubuntu Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well thank you for answering honestly at least. I suggest you ask about these differently though here and in the future in similar situations.

Something like this is how it will go over much better because you ShowSomeEffort

(Example of how to ask that kind of question)

I have a homework question that goes like this: What is blah blah blah whatever?

I think the answer is yada yada yada because (your reasoning) yada yada yada

Am I on the right track? If not, what am I not understanding and where can I find more information? Any tips would be appreciated. Thanks in advance!

=====

Can you see how that would make people more willing to help you learn without feeling like you're just taking advantage and making them do the work you should be doing?
 
Ana Smith
Ranch Hand
Posts: 373
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ah yes, thank you for the clarification Mr. Lacar, if I may call you that.
 
Junilu Lacar
Sheriff
Posts: 17106
298
Mac Android IntelliJ IDE Eclipse IDE Spring Debian Java Ubuntu Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Important: When you say "I think the answer to that question is ...."  ALWAYS include the "because (your reasoning) yada yadd yada" part. This shows that you have at least tried to think it through and you can articulate your thought process. Without that, it just looks like you're trying to take a shortcut with your homework and get people to check your (guess) work for you.
 
Junilu Lacar
Sheriff
Posts: 17106
298
Mac Android IntelliJ IDE Eclipse IDE Spring Debian Java Ubuntu Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Ana Smith wrote:Also what is the name of the parent class of the interface Collection? Is it the Object class?



Take this question, for example. How I would work through this:

Search for parent of java interface Collection

I would then read through some of the top search results.

I would try to digest what I read and gather some of main ideas that I understood.

I would then formulate my own answer based on those ideas.

I would post my answer to this forum and ask for feedback, like "Does this look right? Am I missing anything or did I totally get it wrong?"

Wait for all the eager beavers to come out and offer advice. The Ranch has a lot of those, as you must very well know by now. I'm probably one of the biggest.
 
Marshal
Posts: 76426
366
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Ana Smith wrote:Also what is the name of the parent class of the interface Collection? Is it the Object class?

Don't say parent class say superclass. Maybe the C# term, “base class,” is better, but in Java┬« we say superclass.
Bookmark the API documentation, then you can look up Collection directly and you can see what information that gives you.
 
Greenhorn
Posts: 9
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think reading these before approacing an answer to ArrayList will help you

https://docs.oracle.com/javase/7/docs/api/java/util/List.html
https://netjs.blogspot.com/2015/08/how-arraylist-works-internally-in-java.html
 
"How many licks ..." - I think all of this dog's research starts with these words. Tasty tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic