What is an example of an ArrayList storing information (user input)?
example?
@A.Avinash_Goutham if various pieces of information are stored in the array list, how are they related to one another? I have the basics of the arraylist down, I just don't know how to use it, like asking for name and phone number.. but various entries.. and then they can delete one of the entries
are you talking about any prog language in particular?
@A.Avinash_Goutham java
so u want a program to maintain a phone record?
yeah
well you can do it like define a class with some name say phoneRecord say it has two array lists one for name and one for phone number...assuming every1 has atmost 1 phone number and define methods to add and remove...
yeah you got a single list for number u have to make another one for name and you forgot to append these details to the list use smthin like ArrayList<String> Name = new ArrayList<String>(); ArrayList<Double> Number = new ArrayList<Double>(); and Name.add(name); Number.add(number);
@A.Avinash_Goutham I can;t reply.. "This user only accepts messages from people they have fanned."
lol
Join our real-time social learning platform and learn together with your friends!