Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 12. Working with Data Using Arra... > Working with the Array Class

Working with the Array Class

All arrays are objects of the Array class. Once you create an Array object, you can use the class methods to create, sort, add, retrieve, and remove elements stored in an array.

Creating an array

An array needs to first be declared as a variable and then instantiated as an object of the Array class. The Array() constructor method is used to create a new Array() object:


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial