Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace BuildingArrays
- {
- class Program
- {
- static void Main(string[] args)
- {
- //to define an array and then initialize it later - use new keyword
- string[] summerStrut;
- summerStrut = new string[] {"Juice", "Missing U", "Raspberry Beret", "New York Groove", "Make Me Feel", "Rebel Rebel", "Despacito", "Los Angeles"};
- //To declare and initialize at the same time - no need to use new keyword
- int[] ratings = {2, 2, 5, 1, 3, 2, 4, 3};
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement