Does that compile? Where is the method: getField() defined in the Object class?
Type: Posts; User: Norm
Does that compile? Where is the method: getField() defined in the Object class?
Yes, most objects hold fields. You need to explain a bit more.
Can you post an example of a class definition that will be used to create an object that will be held in the ArrayList?
And say what...
What do you mean when you say "objects"? An ArrayList can only contain objects, not primitives.
How is the ArrayList defined? What type of object does it hold?
How can a Comparator compare two...