Week 9 Recap CSE 115 Spring 2007
Collections “Buckets” that can help us carry around large numbers of objects. “Buckets” that can help us carry around large numbers of objects. Main functionality: Main functionality: –Insert –Delete –Find
Collections in Java java.util.Collection interface java.util.Collection interface Many pre-built collections that implement this interface Many pre-built collections that implement this interface
Generics in Java When we use a collection, we need to tell Java what type of thing is contained in the collection java.util.Collection bagOfCats;
Applications Stand alone applications. Stand alone applications. Execution begins in a method named main. Execution begins in a method named main. Applications need to create a JFrame so that we can have a window on the screen. Applications need to create a JFrame so that we can have a window on the screen.
Timers for Animation Can use a Timer to help us control animation of all the elements on the screen. Can use a Timer to help us control animation of all the elements on the screen.