JAVA, Programmimg Languages

Arrays

What are Arrays?

An Array is a group of like-typed variables that are reffered to by a common name. A specific element in an array is accessed by its index.

Need of Arrays?

  • Not knowing the number of variables needed until runtime.
  • For a large number of variables that would be difficult to assign unique names.
  • A requirement to implement a search or sort mechanism within your program logic.
  • A need to.improve performance.

Array Types in Java

  • One-Dimensional Arrays 
  • Two-Dimensional Arrays
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s