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.

Slides:



Advertisements
Similar presentations
M3 - Design an interface for an e-commerce business.
Advertisements

Microsoft® Small Basic
Microsoft® Small Basic
Week 8 Recap CSE 115 Spring Composite Revisited Once we create a composite object, it can itself refer to composites. Once we create a composite.
JFrame JComponent JFrame JComponent JFrame JComponent.
 User Interface - Raeha Sandalwala.  Introduction to UI  Layouts  UI Controls  Menus and ‘Toasts’  Notifications  Other interesting UIs ◦ ListView.
Implementation options There are two basic approaches: –array-based –linked We will consider array-based implementation first Use a TDD approach: first.
CSE115: Introduction to Computer Science I Dr. Carl Alphonce 219 Bell Hall Office hours: M-F 11:00-11:
CSE 115 Week 11 March , Announcements March 26 – Exam 7 March 26 – Exam 7 March 28 – Resign Deadline March 28 – Resign Deadline Lab 7 turned.
Arrays An array is a collection of variables, all of the same type. An array is created with the new operator. The size of an array must be specified at.
CSE 115 Week 5 February , Monday Announcements Exam 3 today Exam 3 today Lab 3 due this week Lab 3 due this week Exam 4 Monday 2/18 Exam.
Week 10 Recap CSE 115 Spring For-each loop When we have a collection and want to do something to all elements of that collection we use the for-each.
Week 4 Recap CSE 115 Spring Formal Parameter Lists Comma-separated list of formal parameters Formal parameters are listed giving the type of the.
Week 7 Recap CSE 115 Spring Not a Holder, but a Proxy be We actually wanted to build a Proxy for our program What is the difference? Holder is a.
Week 4 Recap CSE 115 Fall 2006 Section C. Decoupling Separation of concerns Defining what an object can do, not how it does it.
Week 5 Recap CSE 115 Spring Composition Informally called “has a” Represented in UML with a diamond- headed arc In code: Declare an instance variable.
Week 3 Recap CSE 115 – Spring Constructor Special capability of a class that sets up the initial state of the object. Constructor definitions are.
Polymorphism CSE 115 Spring 2006 March 6, 8 & 10, 2006.
CSE 115 Week 2 January , Wednesday Announcements Pick up Syllabus if you need one Pick up Syllabus if you need one Recitation Change Form.
Mapping Designs to Code Larman, Chapter 20 CSE432 Object Oriented Software Engineering.
Jan 12, 2012 Introduction to Collections. 2 Collections A collection is a structured group of objects Java 1.2 introduced the Collections Framework Collections.
Clicker questions 11/21/13 CSE 1102 Fall neighbors, (i,j) = (2,2) [0][0] [i][j]
CSS446 Spring 2014 Nan Wang  Java Collection Framework ◦ LinkedList ◦ Set ◦ Map 2.
Java.util.Vector Brian Toone 10/3/07 Updated 10/10/07.
CSS446 Spring 2014 Nan Wang  Java Collection Framework ◦ Stack ◦ Queue & Priority Queue 2.
Week 6: Basic GUI Programming Concepts in Java Example: JFrameDemo.java container : a screen window/applet window/panel that groups and arranges components.
Practical Session 4 Java Collections. Outline Working with a Collection The Collection interface The Collection hierarchy Case Study: Undoable Stack The.
Session 13 Pinball Game Construction Kit (Version 3):
GUIs Graphical User Interfaces. Everything coming together Known: – Inheritance – Interfaces – Abstract classes – Polymorphism – Exceptions New: – Events.
WEEK 1 You have 10 seconds to name…
Chapter 8 Frameworks. Frameworks Framework is a set of cooperating classes and interface types that structures the essential mechanisms of a particular.
Recitation 7 Collections. Array List and Linked List Array List and Linked List are implementations of the same interface: List. As a result, they have.
Page 1 – Spring 2010Steffen Vissing Andersen Software Development with UML and Java 2 SDJ I2, Spring 2010 Agenda – Week 8 Linked List (a reference based.
THREAD Subject:T0934 / Multimedia Programming Foundation Session:3 Tahun:2009 Versi:1/0.
Arrays (part 2) 1 -Based on slides from Deitel & Associates, Inc. - Revised by T. A. Yang.
Further Abstraction Techniques Chapter 10. Abstract Classes There are times when you do not want someone to be able to make an object of your class. For.
Using Visual C++.net IDE Computer and Information Sciences By: Ed Brunjes.
12-Jun-16 Event loops. 2 Programming in prehistoric times Earliest programs were all “batch” processing There was no interaction with the user Input Output.
WHAT IS HARDWARE ? Computer hardware is the collection of physical elements that comprise a COMPUTER SYSTEM LIKE A MOUSE, MONITOR, KEYBOARD, SPEAKER MICROPHONE,
Field Trip #29 Creating an Event Calendar with Java By Keith Lynn.
Advanced Programming 7/10/20161 Ananda Gunawardena.
Java Script and the DOM DOM stands for: –The Document Object Model When a browser reads a web page, it converts it’s contents from HTML into a hierarchical.
MGT 420 Week 2 DQ 2 What are the distinguishing elements of a customer-driven quality requirement? What elements are unique to a customer-driven quality.
Set Collection A Bag is a general collection class that implements the Collection interface. A Set is a collection that resembles a Bag with the provision.
Event loops 16-Jun-18.
Processing Timer Events
GUI AND GRAPHICS.
Three Minute Timer Two Minute Timer One Minute Timer
Timer class and inner classes
Evaluation of List Implementations
Event loops.
Collections & Definite Loops
Event loops 17-Jan-19.
Event loops 17-Jan-19.
Graphical User Interfaces in Java Event-driven programming
Josephus.
Ашық сабақ 7 сынып Файлдар мен қапшықтар Сабақтың тақырыбы:
Windows басқару элементтері
Event loops 8-Apr-19.
Year 2 Spring Term Week 1 Lesson 3
Using PowerPoint.
Қош келдіңіздер!.
Year 2 Spring Term Week 9 Lesson 3
Year 2 Spring Term Week 9 Lesson 3
SIGNAL Band: Very Sensitive
Информатика пән мұғалімі : Аитова Карима.
Event loops.
Event loops 19-Aug-19.
LEARNING & DEVELOPMENT STRATEGY: PROCESS OVERVIEW
Year 2 Spring Term Week 1 Lesson 3
Presentation transcript:

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.