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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Anand ThakurRank #928 · 2.2K reputationPosted Oct 20, 2008, 12:56 AM EDT
Ryan AlfordRank #1,411 · 1.2K reputationPosted Oct 20, 2008, 11:12 AM EDT
Jenni Witzel37 reputationPosted Oct 20, 2008, 4:01 PM EDT
Ryan AlfordRank #1,411 · 1.2K reputationPosted Oct 21, 2008, 9:43 AM EDT
Alex Rivenbark35 reputationPosted Oct 23, 2008, 10:44 PM EDT
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.