Changes between Version 17 and Version 18 of ControlSystems/SoftwareTeam/Training/GettingStarted/JavaExercises
- Timestamp:
- Nov 15, 2016, 10:29:01 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ControlSystems/SoftwareTeam/Training/GettingStarted/JavaExercises
v17 v18 6 6 * Focus on fully understanding all the exercises you complete instead of trying to cover all the information 7 7 * Feel free to mess around with the code to see what changes 8 * If you still feel shaky about a topic after completing the exercise, try coming up with your own similar exercise and completing it without hints 9 * Ex. If you feel shaky on `Animal Farm`, try creating a `Garden` without looking back at the exercise or your `Animal Farm` code. 8 10 9 11 == Basic exercises: … … 105 107 * A building must be able to `store` an object 106 108 107 == Animal Farm step 6: Lists, Generics109 == Animal Farm step 7: Lists, Generics 108 110 * A `Farm implements Building` 109 111 * A `Farm` has a `List` of `Animal` … … 114 116 * When a `Farm` `collapse`, it's `List` of `Animal` is cleared. 115 117 * Warning: Clearing a List is not the same as setting it to null. 118 119 == Review: Deck of Cards 120 Create a Deck of Cards. Each Card has a value Ace through King, and a suit. You can draw cards from the top of the deck, do a perfect riffle shuffle (split the deck in half and alternate cards) of the deck, and print out all the cards in the deck. Overriding the `toString` method will be very helpful.