Computer Science, asked by pratikdarwade89, 18 days ago

Write a java program to take user input of
student ages o and store in an array also display the contents of an array ​

Answers

Answered by poojashukla1911
0

Answer:

Programiz

Search Programiz

Java Arrays

In this tutorial, we will learn to work with arrays in Java. We will learn to declare, initialize, and access array elements with the help of examples.

An array is a collection of similar types of data.

For example, if we want to store the names of 100 people then we can create an array of the string type that can store 100 names.

String[] array = new String[100];

Here, the above array cannot store more than 100 names. The number of values in a Java array is always fixed.

Similar questions