I want to add both String and Integer type of value in ArrayList.
For example i have array list in which i want to add name of the persons and age of the corresponding person in a single arralist.
How can i accomplish this. How can i get this? Actually i am retrieving data from database and want to save all the employee names and ages in a single array list. Like multidimensional array list.
Create a a person class with age and name, then create an ArrayList of that type.