Sorry again but another question is:
Is the Node of a linked List considered an object?
Yup, in Java deep down your elements in the list are stored in some object and
Java consider it none of your business what that object is, i.e. all you need to
know is that one of your elements can be retrieved from it and you don't even
have to do that yourself.
w.r.t. your first questions:
- you cannot delete an element from your array such that your array ends up
one element shorter. All you can do is store a 'sentinel' value somewhere in
your array indicating that no element should be considered present there.
- reversing an array is done by swapping the first and the last element etc. etc.
until all elements are swapped.
kind regards,
Jos