Problem Specification
Single Dimmension Arrays!
1. Problem Description
- Modify the SingleDimArrays.java file from the class website.
2. What to Turn In
- Your modified SingleDimArrays.java file
- Questions:
- Create a new class (name it whatever you like). Add some properties (no more than 4). Create a new array of your newly created class type with the array size of at least 5.
- How would you loop through each index of the array printing out each object’s properties at the index of the loop?
- How would you loop through and filter your array based on evaluating a property of your newly created type?
- Ex. if you had a User class with a property ‘Id’ that was an int, you could filter by ‘Id’ and find id’s greater or less than a certain value.
- Create a new class (name it whatever you like). Add some properties (no more than 4). Create a new array of your newly created class type with the array size of at least 5.