Arrays

From Suhrid.net Wiki
Revision as of 04:52, 28 June 2011 by Suhridk (talk | contribs) (Created page with "== Introduction == * Arrays store multiple variables of the same type. * The array itself is always an object on the heap (even if it is storing primitive elements). == Declar...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Introduction

  • Arrays store multiple variables of the same type.
  • The array itself is always an object on the heap (even if it is storing primitive elements).


Declaring

  • int[] scores (Preferred) or int scores[] (Legal, but bad)