02 2010 档案

摘要: public interface Iterator{ MenuItem [] items; int positions = 0; publci DinerMenuIterator (MenuItem[] items) { this.items= items; } public Object next() { MenuItem menuItem = items[positions]; po...阅读全文
posted @ 2010-02-02 15:52 潇潇息一去不复返 阅读(90) | 评论 (0) 编辑
摘要: public abstract class caffeineBeverageWithHook{ void prepareRecipe() { boilWater(); brew(); pourIncup(); if(customerWantsCondiments()) { addCondiments(); } } abstract void brew(); abstract void...阅读全文
posted @ 2010-02-02 13:30 潇潇息一去不复返 阅读(101) | 评论 (0) 编辑

努力才能前进,勤耕博客才能看远