FAQ: Arrays - Building Arrays

This community-built FAQ covers the “Building Arrays” exercise from the lesson “Arrays”.

Paths and Courses
This exercise can be found in the following Codecademy content:

Learn C#

FAQs on the exercise Building Arrays

There are currently no frequently asked questions associated with this exercise – that’s where you come in! You can contribute to this section by offering your own questions, answers, or clarifications on this exercise. Ask or answer a question by clicking reply (reply) below.

If you’ve had an “aha” moment about the concepts, formatting, syntax, or anything else with this exercise, consider sharing those insights! Teaching others and answering their questions is one of the best ways to learn and stay sharp.

Join the Discussion. Help a fellow learner on their journey.

Ask or answer a question about this exercise by clicking reply (reply) below!
You can also find further discussion and get answers to your questions over in #get-help.

Agree with a comment or answer? Like (like) to up-vote the contribution!

Need broader help or resources? Head to #get-help and #community:tips-and-resources. If you are wanting feedback or inspiration for a project, check out #project.

Looking for motivation to keep learning? Join our wider discussions in #community

Learn more about how to use this guide.

Found a bug? Report it online, or post in #community:Codecademy-Bug-Reporting

Have a question about your account or billing? Reach out to our customer support team!

None of the above? Find out where to ask other questions here!

I just took too long to figure out something that the instructions didn’t make clear, so I wanted to share it with any who might share my confusion. In Learn C# > Arrays > 2. Building Arrays, it doesn’t tell you that each string in your array needs to have quotes (") around it in order to work. All of the examples are Int, which don’t require that.

Well, at almost 50% course done, it implies that we should know whenever you are using a string it needs to be inside quotation marks.

Wow. I share something to help fellow students, and you deliberately hurt my feelings.

I’m sry, that was not my intention… I just don’t think it’s something that exercise should emphasize since you’ve stated “figure out something that the instructions didn’t make clear:confused:

Ah. Good point; they’d certainly covered it before. But they give reminders about things like that in their hints and examples sometimes, and I could have used such a reminder. It’s a lot for me to remember. :slightly_smiling_face:

Yeah they do… but after a time they stop doing it since we move a lot forward so there are new type of hints to cover. Otherwise the hint section would be full to the bottom :smiley:
Anyway, sry for the attitude once more, rly didn’t mean to come off as harsh :sweat_smile:
Good luck and happy coding!
P.S write it down! I have 2 notebooks full of hints and examples, you shouldn’t expect yourself to memorize everything, you’ll just burn out :slight_smile:

using System;

namespace BuildingArrays
  class Program
    static void Main(string[] args)
       string[] summerStrut;
      summerStrut = new string[] {"Juice", "Missing U", "Raspberry Beret", "New York Groove", "Make Me Feel", "Rebel Rebel", "Despacito", "Los Angeles"};
      int[] ratings = {1, 1, 1, 1, 1, 1, 1, 1,};