Data is stored in an array what does this mean?
If a program prompts for 12 integers,prints a list of them as well as the largest and smallest values. Data is stored in an array what does this mean
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Alex RivenbarkPosted Oct 24, 2008, 2:44 AM
Jenni, don't listen to a jack***! The only stupid question is one that you don't ask. I am a technology tutor at the college that I attend, and would be glad to help you with anything that you may not understand. It is true that Google is an excellent source for information like this; but sometimes you will have to pick through the resulting pages to find an answer to your question.
About the array question, I am sure that you know by now that an array in nothing more than a sized grouping of a specific type. If you have not learned about generics yet, as a preview: Generics can do the same things that arrays do, and more. An array is not mutable (it cannot shrink and grow as needed). Also, arrays do not insure type safety. Generic collections (System.Collections.Generics namespace) are must more appropiate for many things. One of these Collection types is a List. The syntax is:
List myList = new List();
Notice that you did not have to declare a size. You can add as many items to this list as needed: myList.Add("Hello world");
Anyway, look into Collections, especially the List<>. I am a fairly new member here, but will be checking these forums at least once a day. Don't hold back any questions. Thanks. Take care.
Ryan AlfordPosted Oct 21, 2008, 1:43 PM
Jenni WitzelPosted Oct 20, 2008, 8:01 PM
Ryan AlfordPosted Oct 20, 2008, 3:12 PM
Anand ThakurPosted Oct 20, 2008, 4:56 AM