📄 balllistinterface.java
字号:
import objectdraw.*;// A list of FilledOvals. This interface// captures what is common about all lists.public interface BallListInterface { // Returns true if the list is empty public boolean isEmpty(); // Returns the first ball in the list // pre: the list is not an empty list. public FilledOval getFirst(); // Returns the rest of the list, after // the first ball. // pre: the list is not an empty list. public BallListInterface getRest(); }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -