Arrays

home-page-new Forums Science Arrays

Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • How do you use arrays in computer science? What are they used for in programs?

    In java arrays are used to store objects of the same type. For example, there could be an array which stores numbers: [0, 1, 2, 3, 4, 5, 6]. Another example is an array storing strings of different colors: [“blue”, “pink”, “green”, “gray”, “brown”, “yellow”, “red”].

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.