ApexSensei

Drills Apex basics

Put two regions in a list

A List<String> holds text values in order.

Your task

Put 'East' and then 'West' into the regions list.

String companyName = 'RidgePoint Capital';
List<String> regions = new List<String>();
Integer seats = 5;
Boolean active = true;

Requirements

  1. regions should be 'East' then 'West'
  2. The declaration should be kept as List<String> regions
  3. The values should be in single quotes
  4. companyName should be 'RidgePoint Capital'

Sign in to open this drill