Array Basics

1234567891011121314151617181920212223
Across
  1. 2. a type of data that is made up of only a single value
  2. 6. the value at words[1] in the following array: String[] words = {"goofy", "happy", "funny", "mopey"};
  3. 7. the value found at the 3rd location in the following array: int[] nums = {3, 0, 6, 4, 1}; (Note: The number must be written out, e.g. seven)
  4. 9. a complex data type that contains characters
  5. 10. to go through each element in a data structure (often using a loop)
  6. 15. a set of steps that, when followed, complete a task
  7. 19. the default value given in the slots for the following array: Drink[] cooler = new Drink[10];
  8. 20. the name of the array in the following line of code: Book[] library = new Book[50];
  9. 21. the type of the array in the following line of code: Book[] library = new Book[50];
  10. 22. a simple data type that can only contain one of two value options
  11. 23. the default value given in the slots for the following array: int[] r = new int[20];
Down
  1. 1. how many slots the array has in the following line of code: Book[] library = new Book[50]; (Note: The number must be written out, e.g. seven)
  2. 3. a simple data type that contains decimal numbers
  3. 4. the default value given in the slots for the following array: boolean[] results = new boolean[5];
  4. 5. the name of the field you can use to determine how many slots an array has
  5. 8. a simple data type that can only contain whole numbers
  6. 11. a data structure that can store a list of values of the same Object data type and can be resized
  7. 12. a type of data that is made up of more than a single value
  8. 13. a hybrid between an algorithm and an actual programming language (a.k.a. simplified English)
  9. 14. the type of the array in the following line of code: double[] cart = new double[13];
  10. 16. how many slots the array has in the following line of code: double[] cart = new double[13]; (Note: The number must be written out, e.g. seven)
  11. 17. the name of the array in the following line of code: double[] cart = new double[13];
  12. 18. a data structure that can store a list of values of the same data type and cannot be resized