malik ge wrote:But if I don't know, how many values are there going to be in an array list, then how can I get them?
For example, if I am trying to get 3 values from an array list, but in that array list there are more than 3 values, then how to handle that situation?
That depends entirely on which 3 you want: The first 3? The last 3? 3 from the middle? 3 at random?
You need to be more specific.
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here