📄 linkedstackuos.java
字号:
/* LinkedStackUos.java
* ---------------------------------------------
* Copyright (c) 2001 University of Saskatchewan
* All Rights Reserved
* --------------------------------------------- */
package dslib.dispenser;
import dslib.list.LinkedSimpleListUos;
/** An implementation of StackUos that uses a LinkedSimpleListUos to store the items. Item refers
to the top item of the stack, and it can be deleted. There are also methods to insert
items and check for empty. */
public class LinkedStackUos extends StackUos
{
/** Construct an empty stack. <br>
Analysis: Time = O(1) */
public LinkedStackUos()
{
rep = new LinkedSimpleListUos();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -