📄 emptybookmarks.java
字号:
// Class used to store a list of bookmarksclass EmptyBookmarks { // returns true since this class only represents // empty lists public boolean isempty() { return true; } public EmptyBookmarks add(Bookmark entry) { return new NonemptyBookmarks( this, entry); } public Bookmark getSelectedItem( int position ) { throw new IllegalArgumentException("Index "+position+" is out of range"); } public int getSize( ) { return 0; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -