004-002-011

Array Creation: Integer Array

Easy

Problem Description

Array Creation: Integer Array

Learning Objective: Understand how to create arrays using the new operator

Overview

Create a program that creates an integer array and displays its length.

Specifications

  • Create an integer array named numbers
  • The array should have 5 elements
  • Output the array length

Output Format

Length: 5

Ready to Try Running Code?

Log in to access the code editor and execute your solutions for this problem.

Don't have an account?