Algorithms and OOD (CSC 207 2014F) : EBoards
Primary: [Front Door] [Schedule] - [Academic Honesty] [Disabilities] [Email] - [Learning Outcomes] [FAQ] [Teaching & Learning] [Grading] [Rubric] - [Calendar]
Current: [Assignment] [EBoard] [Lab] [Outline] [Reading]
Sections: [Assignments] [EBoards] [Examples] [Handouts] [Labs] [Outlines] [Readings]
Reference: [Student-Curated Resources] [Java 8 API] [Java 8 Tutorials] [Code Conventions]
Related Courses: [CSC 152 2006S (Rebelsky)] [CSC 207 2014S (Rebelsky)] [CSC 207 2014F (Walker)] [CSC 207 2011S (Weinman)]
Misc: [Submit Questions] - [SamR] [Glimmer Labs] [CS@Grinnell] [Grinnell] - [Issue Tracker (Course)] [Issue Tracker (Textbook)]
Continue lab partners
Overview
merge and
anything else of interest.mapsortreduceTwo parts: Functional Interface: Only method
@FunctionalInterface
public interface Yeller
{
public void yell(Printwriter pen);
} // interface Yeller
Continuing the example public class YellFire implements Yeller { public void yell(PrintWriter pen) { pen.println("FIRE!"); } }
Yeller sam = new YellFire();
yellAtClients(sam);
public void yellAtClients(Yeller old)
{
for (Client client : clients)
old.yell(client.pen);
}
You can write (PARAMS) -> { BODY }
yellAtClients((pen) -> { String message = "Plesae Disconnect"; pen.println(messeage); });