Problem Set #6: Getting Comfy with Java Arrays

For this session, we will instantiate Java arrays of fixed sizes and write code to manipulate these arrays.

1. Create an array of size 10 and put the following items into the array:  
   (a) 1,2,3,4,7, 5, 6
   (b) "1", "2", "3", "4", "7", "5", "6"
2. Write a method to, given an array, reverse the non-null contents of that array.  
3. Write a method to, given an 'item', a number 'n' and an empty fixed-size array, return that array with 'n' copies of 'item'