📄 emptyballlist.java
字号:
import objectdraw.*;// An empty list of balls. This implements the ball list// interface, but only the isEmpty method should be used.public class EmptyBallList implements BallListInterface { public EmptyBallList() {} public boolean isEmpty() { return true; } // return null as a default value public FilledOval getFirst() { return null; } // return null as a default value public BallListInterface getRest() { return null; } }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -