Filtering Data Introduction
Filtering Data Introduction
Introduction
Interfaces: Motivation
• Common problem: filter data
• Find all quakes of magnitude >= X
• Find all quakes within X miles of you
• …
• No new algorithmic concepts for either
• Similar code: write twice?
• Better: write generic method
• You are going to learn how